diff --git a/src/tiv.cpp b/src/tiv.cpp index 880f994..86c0520 100644 --- a/src/tiv.cpp +++ b/src/tiv.cpp @@ -200,7 +200,7 @@ usage: tiv [options] [...] -0 : No block character adjustment, always use top half block char. -2, --256 : Use 256-bit colors. Needed to display properly on macOS Terminal. -c : Number of thumbnail columns in 'dir' mode (3 by default). --d, --dir : Force 'dir' mode. Automatially selected for more than one input. +-d, --dir : Force 'dir' mode. Automatically selected for more than one input. -f, --full: Force 'full' mode. Automatically selected for one input. --help : Display this help text. -h : Set the maximum output height to lines. @@ -216,7 +216,7 @@ int main(int argc, char *argv[]) { bool detectSize = true; // Platform-specific implementations for determining console size, better - // implementations are welcome Fallback sizes when unsuccesful + // implementations are welcome Fallback sizes when unsuccessful int maxWidth = 80; int maxHeight = 24; @@ -307,7 +307,7 @@ int main(int argc, char *argv[]) { CONSOLE_SCREEN_BUFFER_INFO w; if (GetConsoleScreenBufferInfo( GetStdHandle(STD_OUTPUT_HANDLE), - &w)) { // just like powershell, but without the hyphens, hooray + &w)) { // just like PowerShell, but without the hyphens, hooray maxWidth = w.dwSize.X * 4; maxHeight = w.dwSize.Y * 8; } else { @@ -334,7 +334,7 @@ int main(int argc, char *argv[]) { image.resize(new_size.width, new_size.height, -100, -100, 5); } - // the acutal magic which generates the output + // the actual magic which generates the output printImage(image, flags); } catch (cimg_library::CImgIOException &e) { std::cerr << "Error: '" << filename diff --git a/src/tiv_lib.cpp b/src/tiv_lib.cpp index 341d7d0..691019c 100644 --- a/src/tiv_lib.cpp +++ b/src/tiv_lib.cpp @@ -46,7 +46,7 @@ const int END_MARKER = 0; // An interleaved map of 4x8 bit character bitmaps (each hex digit represents a -// row) to the corresponding unicode character code point. +// row) to the corresponding Unicode character code point. constexpr unsigned int BITMAPS[] = { 0x00000000, 0x00a0, 0,