summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go')
-rw-r--r--vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go321
1 files changed, 164 insertions, 157 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go b/vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go
index 6fa9e7fa4..fec59e281 100644
--- a/vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go
+++ b/vendor/github.com/gdamore/tcell/v2/terminfo/r/rxvt/term.go
@@ -44,7 +44,7 @@ func init() {
KeyLeft: "\x1b[D",
KeyInsert: "\x1b[2~",
KeyDelete: "\x1b[3~",
- KeyBackspace: "\u007f",
+ KeyBackspace: "\b",
KeyHome: "\x1b[7~",
KeyEnd: "\x1b[8~",
KeyPgUp: "\x1b[5~",
@@ -100,6 +100,7 @@ func init() {
KeyShfDown: "\x1b[b",
KeyShfHome: "\x1b[7$",
KeyShfEnd: "\x1b[8$",
+ KeyShfInsert: "\x1b[2$",
KeyShfDelete: "\x1b[3$",
KeyCtrlUp: "\x1b[Oa",
KeyCtrlDown: "\x1b[Ob",
@@ -149,7 +150,7 @@ func init() {
KeyLeft: "\x1b[D",
KeyInsert: "\x1b[2~",
KeyDelete: "\x1b[3~",
- KeyBackspace: "\u007f",
+ KeyBackspace: "\b",
KeyHome: "\x1b[7~",
KeyEnd: "\x1b[8~",
KeyPgUp: "\x1b[5~",
@@ -205,6 +206,7 @@ func init() {
KeyShfDown: "\x1b[b",
KeyShfHome: "\x1b[7$",
KeyShfEnd: "\x1b[8$",
+ KeyShfInsert: "\x1b[2$",
KeyShfDelete: "\x1b[3$",
KeyCtrlUp: "\x1b[Oa",
KeyCtrlDown: "\x1b[Ob",
@@ -254,7 +256,7 @@ func init() {
KeyLeft: "\x1b[D",
KeyInsert: "\x1b[2~",
KeyDelete: "\x1b[3~",
- KeyBackspace: "\u007f",
+ KeyBackspace: "\b",
KeyHome: "\x1b[7~",
KeyEnd: "\x1b[8~",
KeyPgUp: "\x1b[5~",
@@ -310,6 +312,7 @@ func init() {
KeyShfDown: "\x1b[b",
KeyShfHome: "\x1b[7$",
KeyShfEnd: "\x1b[8$",
+ KeyShfInsert: "\x1b[2$",
KeyShfDelete: "\x1b[3$",
KeyCtrlUp: "\x1b[Oa",
KeyCtrlDown: "\x1b[Ob",
@@ -323,163 +326,167 @@ func init() {
// rxvt-unicode terminal (X Window System)
terminfo.AddTerminfo(&terminfo.Terminfo{
- Name: "rxvt-unicode",
- Columns: 80,
- Lines: 24,
- Colors: 88,
- Bell: "\a",
- Clear: "\x1b[H\x1b[2J",
- EnterCA: "\x1b[?1049h",
- ExitCA: "\x1b[r\x1b[?1049l",
- ShowCursor: "\x1b[?12l\x1b[?25h",
- HideCursor: "\x1b[?25l",
- AttrOff: "\x1b[m\x1b(B",
- Underline: "\x1b[4m",
- Bold: "\x1b[1m",
- Italic: "\x1b[3m",
- Blink: "\x1b[5m",
- Reverse: "\x1b[7m",
- EnterKeypad: "\x1b=",
- ExitKeypad: "\x1b>",
- SetFg: "\x1b[38;5;%p1%dm",
- SetBg: "\x1b[48;5;%p1%dm",
- SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm",
- ResetFgBg: "\x1b[39;49m",
- AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
- EnterAcs: "\x1b(0",
- ExitAcs: "\x1b(B",
- Mouse: "\x1b[M",
- SetCursor: "\x1b[%i%p1%d;%p2%dH",
- CursorBack1: "\b",
- CursorUp1: "\x1b[A",
- KeyUp: "\x1b[A",
- KeyDown: "\x1b[B",
- KeyRight: "\x1b[C",
- KeyLeft: "\x1b[D",
- KeyInsert: "\x1b[2~",
- KeyDelete: "\x1b[3~",
- KeyBackspace: "\u007f",
- KeyHome: "\x1b[7~",
- KeyEnd: "\x1b[8~",
- KeyPgUp: "\x1b[5~",
- KeyPgDn: "\x1b[6~",
- KeyF1: "\x1b[11~",
- KeyF2: "\x1b[12~",
- KeyF3: "\x1b[13~",
- KeyF4: "\x1b[14~",
- KeyF5: "\x1b[15~",
- KeyF6: "\x1b[17~",
- KeyF7: "\x1b[18~",
- KeyF8: "\x1b[19~",
- KeyF9: "\x1b[20~",
- KeyF10: "\x1b[21~",
- KeyF11: "\x1b[23~",
- KeyF12: "\x1b[24~",
- KeyF13: "\x1b[25~",
- KeyF14: "\x1b[26~",
- KeyF15: "\x1b[28~",
- KeyF16: "\x1b[29~",
- KeyF17: "\x1b[31~",
- KeyF18: "\x1b[32~",
- KeyF19: "\x1b[33~",
- KeyF20: "\x1b[34~",
- KeyBacktab: "\x1b[Z",
- KeyShfLeft: "\x1b[d",
- KeyShfRight: "\x1b[c",
- KeyShfUp: "\x1b[a",
- KeyShfDown: "\x1b[b",
- KeyShfHome: "\x1b[7$",
- KeyShfEnd: "\x1b[8$",
- KeyShfInsert: "\x1b[2$",
- KeyShfDelete: "\x1b[3$",
- KeyCtrlUp: "\x1b[Oa",
- KeyCtrlDown: "\x1b[Ob",
- KeyCtrlRight: "\x1b[Oc",
- KeyCtrlLeft: "\x1b[Od",
- KeyCtrlHome: "\x1b[7^",
- KeyCtrlEnd: "\x1b[8^",
- AutoMargin: true,
- InsertChar: "\x1b[@",
+ Name: "rxvt-unicode",
+ Columns: 80,
+ Lines: 24,
+ Colors: 88,
+ Bell: "\a",
+ Clear: "\x1b[H\x1b[2J",
+ EnterCA: "\x1b[?1049h",
+ ExitCA: "\x1b[r\x1b[?1049l",
+ ShowCursor: "\x1b[?12l\x1b[?25h",
+ HideCursor: "\x1b[?25l",
+ AttrOff: "\x1b[m\x1b(B",
+ Underline: "\x1b[4m",
+ Bold: "\x1b[1m",
+ Italic: "\x1b[3m",
+ Blink: "\x1b[5m",
+ Reverse: "\x1b[7m",
+ EnterKeypad: "\x1b=",
+ ExitKeypad: "\x1b>",
+ SetFg: "\x1b[38;5;%p1%dm",
+ SetBg: "\x1b[48;5;%p1%dm",
+ SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm",
+ ResetFgBg: "\x1b[39;49m",
+ AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
+ EnterAcs: "\x1b(0",
+ ExitAcs: "\x1b(B",
+ EnableAutoMargin: "\x1b[?7h",
+ DisableAutoMargin: "\x1b[?7l",
+ Mouse: "\x1b[M",
+ SetCursor: "\x1b[%i%p1%d;%p2%dH",
+ CursorBack1: "\b",
+ CursorUp1: "\x1b[A",
+ KeyUp: "\x1b[A",
+ KeyDown: "\x1b[B",
+ KeyRight: "\x1b[C",
+ KeyLeft: "\x1b[D",
+ KeyInsert: "\x1b[2~",
+ KeyDelete: "\x1b[3~",
+ KeyBackspace: "\x7f",
+ KeyHome: "\x1b[7~",
+ KeyEnd: "\x1b[8~",
+ KeyPgUp: "\x1b[5~",
+ KeyPgDn: "\x1b[6~",
+ KeyF1: "\x1b[11~",
+ KeyF2: "\x1b[12~",
+ KeyF3: "\x1b[13~",
+ KeyF4: "\x1b[14~",
+ KeyF5: "\x1b[15~",
+ KeyF6: "\x1b[17~",
+ KeyF7: "\x1b[18~",
+ KeyF8: "\x1b[19~",
+ KeyF9: "\x1b[20~",
+ KeyF10: "\x1b[21~",
+ KeyF11: "\x1b[23~",
+ KeyF12: "\x1b[24~",
+ KeyF13: "\x1b[25~",
+ KeyF14: "\x1b[26~",
+ KeyF15: "\x1b[28~",
+ KeyF16: "\x1b[29~",
+ KeyF17: "\x1b[31~",
+ KeyF18: "\x1b[32~",
+ KeyF19: "\x1b[33~",
+ KeyF20: "\x1b[34~",
+ KeyBacktab: "\x1b[Z",
+ KeyShfLeft: "\x1b[d",
+ KeyShfRight: "\x1b[c",
+ KeyShfUp: "\x1b[a",
+ KeyShfDown: "\x1b[b",
+ KeyShfHome: "\x1b[7$",
+ KeyShfEnd: "\x1b[8$",
+ KeyShfInsert: "\x1b[2$",
+ KeyShfDelete: "\x1b[3$",
+ KeyCtrlUp: "\x1b[Oa",
+ KeyCtrlDown: "\x1b[Ob",
+ KeyCtrlRight: "\x1b[Oc",
+ KeyCtrlLeft: "\x1b[Od",
+ KeyCtrlHome: "\x1b[7^",
+ KeyCtrlEnd: "\x1b[8^",
+ AutoMargin: true,
+ InsertChar: "\x1b[@",
})
// rxvt-unicode terminal with 256 colors (X Window System)
terminfo.AddTerminfo(&terminfo.Terminfo{
- Name: "rxvt-unicode-256color",
- Columns: 80,
- Lines: 24,
- Colors: 256,
- Bell: "\a",
- Clear: "\x1b[H\x1b[2J",
- EnterCA: "\x1b[?1049h",
- ExitCA: "\x1b[r\x1b[?1049l",
- ShowCursor: "\x1b[?12l\x1b[?25h",
- HideCursor: "\x1b[?25l",
- AttrOff: "\x1b[m\x1b(B",
- Underline: "\x1b[4m",
- Bold: "\x1b[1m",
- Italic: "\x1b[3m",
- Blink: "\x1b[5m",
- Reverse: "\x1b[7m",
- EnterKeypad: "\x1b=",
- ExitKeypad: "\x1b>",
- SetFg: "\x1b[38;5;%p1%dm",
- SetBg: "\x1b[48;5;%p1%dm",
- SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm",
- ResetFgBg: "\x1b[39;49m",
- AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
- EnterAcs: "\x1b(0",
- ExitAcs: "\x1b(B",
- Mouse: "\x1b[M",
- SetCursor: "\x1b[%i%p1%d;%p2%dH",
- CursorBack1: "\b",
- CursorUp1: "\x1b[A",
- KeyUp: "\x1b[A",
- KeyDown: "\x1b[B",
- KeyRight: "\x1b[C",
- KeyLeft: "\x1b[D",
- KeyInsert: "\x1b[2~",
- KeyDelete: "\x1b[3~",
- KeyBackspace: "\u007f",
- KeyHome: "\x1b[7~",
- KeyEnd: "\x1b[8~",
- KeyPgUp: "\x1b[5~",
- KeyPgDn: "\x1b[6~",
- KeyF1: "\x1b[11~",
- KeyF2: "\x1b[12~",
- KeyF3: "\x1b[13~",
- KeyF4: "\x1b[14~",
- KeyF5: "\x1b[15~",
- KeyF6: "\x1b[17~",
- KeyF7: "\x1b[18~",
- KeyF8: "\x1b[19~",
- KeyF9: "\x1b[20~",
- KeyF10: "\x1b[21~",
- KeyF11: "\x1b[23~",
- KeyF12: "\x1b[24~",
- KeyF13: "\x1b[25~",
- KeyF14: "\x1b[26~",
- KeyF15: "\x1b[28~",
- KeyF16: "\x1b[29~",
- KeyF17: "\x1b[31~",
- KeyF18: "\x1b[32~",
- KeyF19: "\x1b[33~",
- KeyF20: "\x1b[34~",
- KeyBacktab: "\x1b[Z",
- KeyShfLeft: "\x1b[d",
- KeyShfRight: "\x1b[c",
- KeyShfUp: "\x1b[a",
- KeyShfDown: "\x1b[b",
- KeyShfHome: "\x1b[7$",
- KeyShfEnd: "\x1b[8$",
- KeyShfInsert: "\x1b[2$",
- KeyShfDelete: "\x1b[3$",
- KeyCtrlUp: "\x1b[Oa",
- KeyCtrlDown: "\x1b[Ob",
- KeyCtrlRight: "\x1b[Oc",
- KeyCtrlLeft: "\x1b[Od",
- KeyCtrlHome: "\x1b[7^",
- KeyCtrlEnd: "\x1b[8^",
- AutoMargin: true,
- InsertChar: "\x1b[@",
+ Name: "rxvt-unicode-256color",
+ Columns: 80,
+ Lines: 24,
+ Colors: 256,
+ Bell: "\a",
+ Clear: "\x1b[H\x1b[2J",
+ EnterCA: "\x1b[?1049h",
+ ExitCA: "\x1b[r\x1b[?1049l",
+ ShowCursor: "\x1b[?12l\x1b[?25h",
+ HideCursor: "\x1b[?25l",
+ AttrOff: "\x1b[m\x1b(B",
+ Underline: "\x1b[4m",
+ Bold: "\x1b[1m",
+ Italic: "\x1b[3m",
+ Blink: "\x1b[5m",
+ Reverse: "\x1b[7m",
+ EnterKeypad: "\x1b=",
+ ExitKeypad: "\x1b>",
+ SetFg: "\x1b[38;5;%p1%dm",
+ SetBg: "\x1b[48;5;%p1%dm",
+ SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm",
+ ResetFgBg: "\x1b[39;49m",
+ AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
+ EnterAcs: "\x1b(0",
+ ExitAcs: "\x1b(B",
+ EnableAutoMargin: "\x1b[?7h",
+ DisableAutoMargin: "\x1b[?7l",
+ Mouse: "\x1b[M",
+ SetCursor: "\x1b[%i%p1%d;%p2%dH",
+ CursorBack1: "\b",
+ CursorUp1: "\x1b[A",
+ KeyUp: "\x1b[A",
+ KeyDown: "\x1b[B",
+ KeyRight: "\x1b[C",
+ KeyLeft: "\x1b[D",
+ KeyInsert: "\x1b[2~",
+ KeyDelete: "\x1b[3~",
+ KeyBackspace: "\x7f",
+ KeyHome: "\x1b[7~",
+ KeyEnd: "\x1b[8~",
+ KeyPgUp: "\x1b[5~",
+ KeyPgDn: "\x1b[6~",
+ KeyF1: "\x1b[11~",
+ KeyF2: "\x1b[12~",
+ KeyF3: "\x1b[13~",
+ KeyF4: "\x1b[14~",
+ KeyF5: "\x1b[15~",
+ KeyF6: "\x1b[17~",
+ KeyF7: "\x1b[18~",
+ KeyF8: "\x1b[19~",
+ KeyF9: "\x1b[20~",
+ KeyF10: "\x1b[21~",
+ KeyF11: "\x1b[23~",
+ KeyF12: "\x1b[24~",
+ KeyF13: "\x1b[25~",
+ KeyF14: "\x1b[26~",
+ KeyF15: "\x1b[28~",
+ KeyF16: "\x1b[29~",
+ KeyF17: "\x1b[31~",
+ KeyF18: "\x1b[32~",
+ KeyF19: "\x1b[33~",
+ KeyF20: "\x1b[34~",
+ KeyBacktab: "\x1b[Z",
+ KeyShfLeft: "\x1b[d",
+ KeyShfRight: "\x1b[c",
+ KeyShfUp: "\x1b[a",
+ KeyShfDown: "\x1b[b",
+ KeyShfHome: "\x1b[7$",
+ KeyShfEnd: "\x1b[8$",
+ KeyShfInsert: "\x1b[2$",
+ KeyShfDelete: "\x1b[3$",
+ KeyCtrlUp: "\x1b[Oa",
+ KeyCtrlDown: "\x1b[Ob",
+ KeyCtrlRight: "\x1b[Oc",
+ KeyCtrlLeft: "\x1b[Od",
+ KeyCtrlHome: "\x1b[7^",
+ KeyCtrlEnd: "\x1b[8^",
+ AutoMargin: true,
+ InsertChar: "\x1b[@",
})
}