ターミナル
キーを押したとき端末に送られる文字列を知る。
(終了するには C-d)
stty -echo; cat -v; stty echo
termcap ファイルを指定する環境変数は TERMCAP。
terminfo は TERMINFO。
termcap & terminfo より。termcap のエントリを見やすい形に抜き出すスクリプト。
Usage: listcap [TERM]
#!/bin/sh type=${1-$TERM} echo "Termcap Entry for: $type" sed -n "/$type|/,/:$/{ /|/s/^./ &/ s/:\\\/:/ s/:/\\ /g p } " /etc/termcap | sort -fu