xterm.go 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. package ansi
  2. // DisableModifyOtherKeys disables the modifyOtherKeys mode.
  3. //
  4. // CSI > 4 ; 0 m
  5. //
  6. // See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
  7. // See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys
  8. const DisableModifyOtherKeys = "\x1b[>4;0m"
  9. // EnableModifyOtherKeys1 enables the modifyOtherKeys mode 1.
  10. //
  11. // CSI > 4 ; 1 m
  12. //
  13. // See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
  14. // See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys
  15. const EnableModifyOtherKeys1 = "\x1b[>4;1m"
  16. // EnableModifyOtherKeys2 enables the modifyOtherKeys mode 2.
  17. //
  18. // CSI > 4 ; 2 m
  19. //
  20. // See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
  21. // See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys
  22. const EnableModifyOtherKeys2 = "\x1b[>4;2m"
  23. // RequestModifyOtherKeys requests the modifyOtherKeys mode.
  24. //
  25. // CSI ? 4 m
  26. //
  27. // See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
  28. // See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys
  29. const RequestModifyOtherKeys = "\x1b[?4m"