code / ascii-table

Lines448 C398 make30 Markdown20
(27 lines)

ascii

A simple curses console application that shows an ASCII table and lets you manually output ASCII sequences.

Screenshot

Usage

Just run ascii to launch the ascii table viewier. Any text piped in will be appended to an output buffer, followed by the ASCII values of any numbers passed as arguments.

Controls

In the ASCII table viewer, you can navigate with arrow keys or h/j/k/l. Pressing enter will append the selected character to the output buffer and backspace will delete from the output buffer.

Pressing / will open a search. You can begin typing to search by character or by name, and hit enter to select the result or escape to cancel. After selecting a result, you can hit n to jump to the next match or N to jump to the previous match.

Pressing i will enter insert mode, where you can type freely into the output buffer, pressing escape will leave insert mode. Pressing q or escape will exit and print the output buffer to stdout. Hitting control-c will quit without printing the output buffer.

1 # ascii
3 A simple curses console application that shows an ASCII table and lets you
4 manually output ASCII sequences.
6 ![Screenshot](https://bitbucket.org/spilt/ascii-table/downloads/ascii_screenshot.gif)
8 ## Usage
10 Just run `ascii` to launch the ascii table viewier. Any text piped in will be
11 appended to an output buffer, followed by the ASCII values of any numbers
12 passed as arguments.
14 ## Controls
15 In the ASCII table viewer, you can navigate with arrow keys or h/j/k/l.
16 Pressing `enter` will append the selected character to the output buffer and
17 `backspace` will delete from the output buffer.
19 Pressing `/` will open a search. You can begin typing to search by character or
20 by name, and hit `enter` to select the result or `escape` to cancel. After
21 selecting a result, you can hit `n` to jump to the next match or `N` to jump to
22 the previous match.
24 Pressing `i` will enter insert mode, where you can type freely into the output
25 buffer, pressing `escape` will leave insert mode. Pressing `q` or `escape` will
26 exit and print the output buffer to stdout. Hitting control-c will quit without
27 printing the output buffer.