Skip to content

Instantly share code, notes, and snippets.

@ericbn
Last active October 20, 2020 21:13
Show Gist options
  • Save ericbn/a0b314286c23444283c8d3e359ea7a16 to your computer and use it in GitHub Desktop.
Save ericbn/a0b314286c23444283c8d3e359ea7a16 to your computer and use it in GitHub Desktop.
# xterm on Android termux
TERM=xterm-256color
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
) Started application mode
) F1: ^[OP
) F2: ^[OQ
) F3: ^[OR
) F4: ^[OS
) F5: ^[[15~
) F6: ^[[17~
) F7: ^[[18~
) F8: ^[[19~
) F9: ^[[20~
) F10: ^[[21~
) F11: ^[[23~
) F12: ^[[24~
x Backspace: Got ^?, but expected ^H
) Delete: ^[[3~
) Insert: ^[[2~
) Home: ^[OH
) End: ^[OF
) PageUp: ^[[5~
) PageDown: ^[[6~
) Up: ^[OA
) Left: ^[OD
) Down: ^[OB
) Right: ^[OC
) AltLeft: ^[[1;3D
) AltRight: ^[[1;3C
) ControlLeft: ^[[1;5D
) ControlRight: ^[[1;5C
) ShiftTab: ^[[Z
) Ended application mode
# xterm on macos
TERM=xterm-256color
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
) Started application mode
) F1: ^[OP
) F2: ^[OQ
) F3: ^[OR
) F4: ^[OS
) F5: ^[[15~
) F6: ^[[17~
) F7: ^[[18~
) F8: ^[[19~
) F9: ^[[20~
) F10: ^[[21~
! F11: skipped, but expected ^[[23~
) F12: ^[[24~
) Backspace: ^H
) Delete: ^[[3~
! Insert: skipped, but expected ^[[2~
) Home: ^[OH
) End: ^[OF
) PageUp: ^[[5~
) PageDown: ^[[6~
) Up: ^[OA
) Left: ^[OD
) Down: ^[OB
) Right: ^[OC
) AltLeft: ^[[1;3D
) AltRight: ^[[1;3C
! ControlLeft: skipped, but expected ^[[1;5D
! ControlRight: skipped, but expected ^[[1;5C
) ShiftTab: ^[[Z
) Ended application mode
# xterm on lubuntu
TERM=xterm-256color
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
) Started application mode
) F1: ^[OP
) F2: ^[OQ
) F3: ^[OR
) F4: ^[OS
) F5: ^[[15~
) F6: ^[[17~
) F7: ^[[18~
) F8: ^[[19~
) F9: ^[[20~
) F10: ^[[21~
! F11: skipped, but expected ^[[23~
) F12: ^[[24~
x Backspace: Got ^H, but expected ^?
) Delete: ^[[3~
) Insert: ^[[2~
) Home: ^[OH
) End: ^[OF
) PageUp: ^[[5~
) PageDown: ^[[6~
) Up: ^[OA
) Left: ^[OD
) Down: ^[OB
) Right: ^[OC
! AltLeft: skipped, but expected ^[[1;3D
! AltRight: skipped, but expected ^[[1;3C
) ControlLeft: ^[[1;5D
) ControlRight: ^[[1;5C
) ShiftTab: ^[[Z
) Ended application mode
# urxvt on lubuntu
TERM=rxvt-unicode-256color
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
) Started application mode
) F1: ^[[11~
) F2: ^[[12~
) F3: ^[[13~
) F4: ^[[14~
) F5: ^[[15~
) F6: ^[[17~
) F7: ^[[18~
) F8: ^[[19~
) F9: ^[[20~
) F10: ^[[21~
! F11: skipped, but expected ^[[23~
) F12: ^[[24~
) Backspace: ^?
) Delete: ^[[3~
) Insert: ^[[2~
) Home: ^[[7~
) End: ^[[8~
) PageUp: ^[[5~
) PageDown: ^[[6~
) Up: ^[[A
) Left: ^[[D
) Down: ^[[B
) Right: ^[[C
x AltLeft: not defined, but got ^[^[[D
x AltRight: not defined, but got ^[^[[C
) ControlLeft: ^[Od
) ControlRight: ^[Oc
) ShiftTab: ^[[Z
) Ended application mode
# tty on lubuntu
TERM=linux
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
x Application mode is not supported
) F1: ^[[[A
) F2: ^[[[B
) F3: ^[[[C
) F4: ^[[[D
) F5: ^[[[E
) F6: ^[[17~
) F7: ^[[18~
) F8: ^[[19~
) F9: ^[[20~
) F10: ^[[21~
) F11: ^[[23~
) F12: ^[[24~
) Backspace: ^?
) Delete: ^[[3~
) Insert: ^[[2~
) Home: ^[[1~
) End: ^[[4~
) PageUp: ^[[5~
) PageDown: ^[[6~
) Up: ^[[A
) Left: ^[[D
) Down: ^[[B
) Right: ^[[C
! AltLeft: not defined, and skipped
! AltRight: not defined, and skipped
x ControlLeft: not defined, but got ^[[D
x ControlRight: not defined, but got ^[[C
x ShiftTab: Got ^[\t, but expected ^[[Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment