-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(term): add xterm modifyOtherKeys ansi sequences
- Loading branch information
1 parent
66d2677
commit e3ab17b
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package ansi | ||
|
||
// DisableModifyOtherKeys disables the modifyOtherKeys mode. | ||
// | ||
// CSI > 4 ; 0 m | ||
// | ||
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_ | ||
// See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys | ||
const DisableModifyOtherKeys = "\x1b[>4;0m" | ||
|
||
// EnableModifyOtherKeys1 enables the modifyOtherKeys mode 1. | ||
// | ||
// CSI > 4 ; 1 m | ||
// | ||
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_ | ||
// See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys | ||
const EnableModifyOtherKeys1 = "\x1b[>4;1m" | ||
|
||
// EnableModifyOtherKeys2 enables the modifyOtherKeys mode 2. | ||
// | ||
// CSI > 4 ; 2 m | ||
// | ||
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_ | ||
// See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys | ||
const EnableModifyOtherKeys2 = "\x1b[>4;2m" | ||
|
||
// RequestModifyOtherKeys requests the modifyOtherKeys mode. | ||
// | ||
// CSI ? 4 m | ||
// | ||
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_ | ||
// See: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys | ||
const RequestModifyOtherKeys = "\x1b[?4m" |