Debian Codegraph @

ansi/keypad.go

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