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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -