eric:computer:bash:shell_scripting:shell.scripting.tput
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eric:computer:bash:shell_scripting:shell.scripting.tput [2026/10/08 20:38] – admin | eric:computer:bash:shell_scripting:shell.scripting.tput [2026/10/08 21:33] (current) – [Bash examples] admin | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| Sometimes I didn’t find a matching ANSI escape or vice versa - you’ll see a :?: as code then - feel free to mail me or fix it! | Sometimes I didn’t find a matching ANSI escape or vice versa - you’ll see a :?: as code then - feel free to mail me or fix it! | ||
| - | The ANSI codes are always | + | The ANSI codes are always |
| All codes that can be used with tput can be found in terminfo(5). (on OpenBSD at least) See OpenBSD’s terminfo(5) under the Capabilities section. The cap-name is the code to use with tput, a description of each code is also provided. General useful ASCII codes | All codes that can be used with tput can be found in terminfo(5). (on OpenBSD at least) See OpenBSD’s terminfo(5) under the Capabilities section. The cap-name is the code to use with tput, a description of each code is also provided. General useful ASCII codes | ||
| Line 27: | Line 27: | ||
| The Ctrl-Key representation is simply associating the non-printable characters from ASCII code 1 with the printable (letter) characters from ASCII code 65 (“A”). ASCII code 1 would be ^A (Ctrl-A), while ASCII code 7 (BEL) would be ^G (Ctrl-G). This is a common representation (and input method) and historically comes from one of the VT series of terminals. | The Ctrl-Key representation is simply associating the non-printable characters from ASCII code 1 with the printable (letter) characters from ASCII code 65 (“A”). ASCII code 1 would be ^A (Ctrl-A), while ASCII code 7 (BEL) would be ^G (Ctrl-G). This is a common representation (and input method) and historically comes from one of the VT series of terminals. | ||
| - | ^Name^decimal^octal^hex ^C-escape^Ctrl-Key | + | ^ Name ^ decimal ^ octal ^ hex ^ C-escape ^ Ctrl-Key |
| - | |BEL |7 |007 |0x07|< | + | | BEL | 7 |
| - | |BS |8 |010 |0x08|^H |Backspace | + | | BS |
| - | |HT |9 |011 |0x09|^I |Horizontal TAB | + | | HT |
| - | |LF |10 | + | | LF |
| - | |VT |11 | + | | VT |
| - | |FF |12 | + | | FF |
| - | |CR |13 | + | | CR |
| - | |ESC |27 | + | | ESC | 27 | 033 |
| - | |DEL |127 |177 |0x7F|< | + | | DEL | 127 |
| ===== Cursor handling ===== | ===== Cursor handling ===== | ||
| Line 249: | Line 249: | ||
| ${KSH_VERSION+. doKsh} ${BASH_VERSION+doBash} | ${KSH_VERSION+. doKsh} ${BASH_VERSION+doBash} | ||
| </ | </ | ||
| - | MORE INFO < | + | MORE INFO < |
| - | Source: http:// | + | Source: http:// |
| + | Original source now offline, try: https:// | ||
eric/computer/bash/shell_scripting/shell.scripting.tput.1791491897.txt.gz · Last modified: by admin
