Fix some minor typos

This commit is contained in:
Quentin Santos 2024-03-23 08:22:31 +01:00 committed by Stefan Haustein
parent 84a3616796
commit 92cf12d2ec
2 changed files with 5 additions and 5 deletions

View file

@ -200,7 +200,7 @@ usage: tiv [options] <image> [<image>...]
-0 : No block character adjustment, always use top half block char. -0 : No block character adjustment, always use top half block char.
-2, --256 : Use 256-bit colors. Needed to display properly on macOS Terminal. -2, --256 : Use 256-bit colors. Needed to display properly on macOS Terminal.
-c <num> : Number of thumbnail columns in 'dir' mode (3 by default). -c <num> : 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. -f, --full: Force 'full' mode. Automatically selected for one input.
--help : Display this help text. --help : Display this help text.
-h <num> : Set the maximum output height to <num> lines. -h <num> : Set the maximum output height to <num> lines.
@ -216,7 +216,7 @@ int main(int argc, char *argv[]) {
bool detectSize = true; bool detectSize = true;
// Platform-specific implementations for determining console size, better // 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 maxWidth = 80;
int maxHeight = 24; int maxHeight = 24;
@ -307,7 +307,7 @@ int main(int argc, char *argv[]) {
CONSOLE_SCREEN_BUFFER_INFO w; CONSOLE_SCREEN_BUFFER_INFO w;
if (GetConsoleScreenBufferInfo( if (GetConsoleScreenBufferInfo(
GetStdHandle(STD_OUTPUT_HANDLE), 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; maxWidth = w.dwSize.X * 4;
maxHeight = w.dwSize.Y * 8; maxHeight = w.dwSize.Y * 8;
} else { } else {
@ -334,7 +334,7 @@ int main(int argc, char *argv[]) {
image.resize(new_size.width, new_size.height, -100, -100, image.resize(new_size.width, new_size.height, -100, -100,
5); 5);
} }
// the acutal magic which generates the output // the actual magic which generates the output
printImage(image, flags); printImage(image, flags);
} catch (cimg_library::CImgIOException &e) { } catch (cimg_library::CImgIOException &e) {
std::cerr << "Error: '" << filename std::cerr << "Error: '" << filename

View file

@ -46,7 +46,7 @@
const int END_MARKER = 0; const int END_MARKER = 0;
// An interleaved map of 4x8 bit character bitmaps (each hex digit represents a // 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[] = { constexpr unsigned int BITMAPS[] = {
0x00000000, 0x00a0, 0, 0x00000000, 0x00a0, 0,