2 ms·
$ man terminfo | grep cursor_down | head -1 cursor_down cud1 do down one line $ tput cud1 | hexdump -C | cut -f 1-20 |
by barrkel 13y ago
$ man terminfo | grep cursor_down | head -1
cursor_down cud1 do down one line
$ tput cud1 | hexdump -C | cut -f 1-20 | head -1
00000000 0a |.|
$ man terminfo | grep carriage_return | head -1
carriage_return cr cr carriage return (P*)
$ tput cr | hexdump -C | cut -f 1-20 | head -1
00000000 0d |.|
If you ever write a bash script that does more advanced things with the terminal, you'll get familiar with tput, termcap and terminfo pretty quickly.