keypad.go 728 B

12345678910111213141516171819202122232425262728
  1. package ansi
  2. // Keypad Application Mode (DECKPAM) is a mode that determines whether the
  3. // keypad sends application sequences or ANSI sequences.
  4. //
  5. // This works like enabling [DECNKM].
  6. // Use [NumericKeypadMode] to set the numeric keypad mode.
  7. //
  8. // ESC =
  9. //
  10. // See: https://vt100.net/docs/vt510-rm/DECKPAM.html
  11. const (
  12. KeypadApplicationMode = "\x1b="
  13. DECKPAM = KeypadApplicationMode
  14. )
  15. // Keypad Numeric Mode (DECKPNM) is a mode that determines whether the keypad
  16. // sends application sequences or ANSI sequences.
  17. //
  18. // This works the same as disabling [DECNKM].
  19. //
  20. // ESC >
  21. //
  22. // See: https://vt100.net/docs/vt510-rm/DECKPNM.html
  23. const (
  24. KeypadNumericMode = "\x1b>"
  25. DECKPNM = KeypadNumericMode
  26. )