2019-07-24 09:54:20 +08:00
|
|
|
// Generated automatically. DO NOT HAND-EDIT.
|
|
|
|
|
|
|
|
package emacs
|
|
|
|
|
2020-08-26 07:20:58 +08:00
|
|
|
import "github.com/gdamore/tcell/v2/terminfo"
|
2019-07-24 09:54:20 +08:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
|
|
|
// gnu emacs term.el terminal emulation
|
|
|
|
terminfo.AddTerminfo(&terminfo.Terminfo{
|
|
|
|
Name: "eterm",
|
|
|
|
Columns: 80,
|
|
|
|
Lines: 24,
|
|
|
|
Bell: "\a",
|
|
|
|
Clear: "\x1b[H\x1b[J",
|
|
|
|
EnterCA: "\x1b7\x1b[?47h",
|
|
|
|
ExitCA: "\x1b[2J\x1b[?47l\x1b8",
|
|
|
|
AttrOff: "\x1b[m",
|
|
|
|
Underline: "\x1b[4m",
|
|
|
|
Bold: "\x1b[1m",
|
|
|
|
Reverse: "\x1b[7m",
|
|
|
|
PadChar: "\x00",
|
|
|
|
SetCursor: "\x1b[%i%p1%d;%p2%dH",
|
|
|
|
CursorBack1: "\b",
|
|
|
|
CursorUp1: "\x1b[A",
|
|
|
|
})
|
|
|
|
|
|
|
|
// Emacs term.el terminal emulator term-protocol-version 0.96
|
|
|
|
terminfo.AddTerminfo(&terminfo.Terminfo{
|
|
|
|
Name: "eterm-color",
|
|
|
|
Columns: 80,
|
|
|
|
Lines: 24,
|
|
|
|
Colors: 8,
|
|
|
|
Bell: "\a",
|
|
|
|
Clear: "\x1b[H\x1b[J",
|
|
|
|
AttrOff: "\x1b[m",
|
|
|
|
Underline: "\x1b[4m",
|
|
|
|
Bold: "\x1b[1m",
|
|
|
|
Blink: "\x1b[5m",
|
|
|
|
Reverse: "\x1b[7m",
|
|
|
|
SetFg: "\x1b[%p1%{30}%+%dm",
|
|
|
|
SetBg: "\x1b[%p1%'('%+%dm",
|
|
|
|
SetFgBg: "\x1b[%p1%{30}%+%d;%p2%'('%+%dm",
|
2020-08-31 13:46:34 +08:00
|
|
|
ResetFgBg: "\x1b[39;49m",
|
2019-07-24 09:54:20 +08:00
|
|
|
PadChar: "\x00",
|
|
|
|
SetCursor: "\x1b[%i%p1%d;%p2%dH",
|
|
|
|
CursorBack1: "\b",
|
|
|
|
CursorUp1: "\x1b[A",
|
|
|
|
KeyUp: "\x1bOA",
|
|
|
|
KeyDown: "\x1bOB",
|
|
|
|
KeyRight: "\x1bOC",
|
|
|
|
KeyLeft: "\x1bOD",
|
|
|
|
KeyInsert: "\x1b[2~",
|
|
|
|
KeyDelete: "\x1b[3~",
|
2020-01-15 06:44:18 +08:00
|
|
|
KeyBackspace: "\u007f",
|
2019-07-24 09:54:20 +08:00
|
|
|
KeyHome: "\x1b[1~",
|
|
|
|
KeyEnd: "\x1b[4~",
|
|
|
|
KeyPgUp: "\x1b[5~",
|
|
|
|
KeyPgDn: "\x1b[6~",
|
|
|
|
})
|
|
|
|
}
|