xterm - Where can I find a list of terminal ANSI codes sent by Ctrl-key sequences? -
i writing behavioural tests code interacts terminal , need assert behaviour on sequence c-p c-q (ctrl-p ctrl-q). in order this, need write raw characters pty. have small mapping @ moment things c-d => 0x04, c-h => 0x08.
is there somewhere can basic mapping of human readable control sequences, mapped raw byte sequences xterm?
take ascii value of character (e.g., ^h, take 72), , subtract 64. thus, ^h 8.
this works control character. using it, can discover that, example, ^@ nul character , ^[ esc.
Comments
Post a Comment