...

Source file src/github.com/gdamore/tcell/v2/terminfo/s/simpleterm/term.go

Documentation: github.com/gdamore/tcell/v2/terminfo/s/simpleterm

     1  // Generated automatically.  DO NOT HAND-EDIT.
     2  
     3  package simpleterm
     4  
     5  import "github.com/gdamore/tcell/v2/terminfo"
     6  
     7  func init() {
     8  
     9  	//  simpleterm
    10  	terminfo.AddTerminfo(&terminfo.Terminfo{
    11  		Name:          "st",
    12  		Columns:       80,
    13  		Lines:         24,
    14  		Colors:        8,
    15  		Bell:          "\a",
    16  		Clear:         "\x1b[H\x1b[2J",
    17  		EnterCA:       "\x1b[?1049h",
    18  		ExitCA:        "\x1b[?1049l",
    19  		ShowCursor:    "\x1b[?12l\x1b[?25h",
    20  		HideCursor:    "\x1b[?25l",
    21  		AttrOff:       "\x1b[0m",
    22  		Underline:     "\x1b[4m",
    23  		Bold:          "\x1b[1m",
    24  		Dim:           "\x1b[2m",
    25  		Italic:        "\x1b[3m",
    26  		Blink:         "\x1b[5m",
    27  		Reverse:       "\x1b[7m",
    28  		EnterKeypad:   "\x1b[?1h\x1b=",
    29  		ExitKeypad:    "\x1b[?1l\x1b>",
    30  		SetFg:         "\x1b[3%p1%dm",
    31  		SetBg:         "\x1b[4%p1%dm",
    32  		SetFgBg:       "\x1b[3%p1%d;4%p2%dm",
    33  		ResetFgBg:     "\x1b[39;49m",
    34  		AltChars:      "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
    35  		EnterAcs:      "\x1b(0",
    36  		ExitAcs:       "\x1b(B",
    37  		EnableAcs:     "\x1b)0",
    38  		StrikeThrough: "\x1b[9m",
    39  		Mouse:         "\x1b[M",
    40  		SetCursor:     "\x1b[%i%p1%d;%p2%dH",
    41  		CursorBack1:   "\b",
    42  		CursorUp1:     "\x1b[A",
    43  		KeyUp:         "\x1bOA",
    44  		KeyDown:       "\x1bOB",
    45  		KeyRight:      "\x1bOC",
    46  		KeyLeft:       "\x1bOD",
    47  		KeyInsert:     "\x1b[2~",
    48  		KeyDelete:     "\x1b[3~",
    49  		KeyBackspace:  "\u007f",
    50  		KeyHome:       "\x1b[1~",
    51  		KeyEnd:        "\x1b[4~",
    52  		KeyPgUp:       "\x1b[5~",
    53  		KeyPgDn:       "\x1b[6~",
    54  		KeyF1:         "\x1bOP",
    55  		KeyF2:         "\x1bOQ",
    56  		KeyF3:         "\x1bOR",
    57  		KeyF4:         "\x1bOS",
    58  		KeyF5:         "\x1b[15~",
    59  		KeyF6:         "\x1b[17~",
    60  		KeyF7:         "\x1b[18~",
    61  		KeyF8:         "\x1b[19~",
    62  		KeyF9:         "\x1b[20~",
    63  		KeyF10:        "\x1b[21~",
    64  		KeyF11:        "\x1b[23~",
    65  		KeyF12:        "\x1b[24~",
    66  		KeyClear:      "\x1b[3;5~",
    67  		KeyBacktab:    "\x1b[Z",
    68  		Modifiers:     1,
    69  		TrueColor:     true,
    70  		AutoMargin:    true,
    71  	})
    72  
    73  	//  simpleterm with 256 colors
    74  	terminfo.AddTerminfo(&terminfo.Terminfo{
    75  		Name:          "st-256color",
    76  		Columns:       80,
    77  		Lines:         24,
    78  		Colors:        256,
    79  		Bell:          "\a",
    80  		Clear:         "\x1b[H\x1b[2J",
    81  		EnterCA:       "\x1b[?1049h",
    82  		ExitCA:        "\x1b[?1049l",
    83  		ShowCursor:    "\x1b[?12l\x1b[?25h",
    84  		HideCursor:    "\x1b[?25l",
    85  		AttrOff:       "\x1b[0m",
    86  		Underline:     "\x1b[4m",
    87  		Bold:          "\x1b[1m",
    88  		Dim:           "\x1b[2m",
    89  		Italic:        "\x1b[3m",
    90  		Blink:         "\x1b[5m",
    91  		Reverse:       "\x1b[7m",
    92  		EnterKeypad:   "\x1b[?1h\x1b=",
    93  		ExitKeypad:    "\x1b[?1l\x1b>",
    94  		SetFg:         "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m",
    95  		SetBg:         "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m",
    96  		SetFgBg:       "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m",
    97  		ResetFgBg:     "\x1b[39;49m",
    98  		AltChars:      "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
    99  		EnterAcs:      "\x1b(0",
   100  		ExitAcs:       "\x1b(B",
   101  		EnableAcs:     "\x1b)0",
   102  		StrikeThrough: "\x1b[9m",
   103  		Mouse:         "\x1b[M",
   104  		SetCursor:     "\x1b[%i%p1%d;%p2%dH",
   105  		CursorBack1:   "\b",
   106  		CursorUp1:     "\x1b[A",
   107  		KeyUp:         "\x1bOA",
   108  		KeyDown:       "\x1bOB",
   109  		KeyRight:      "\x1bOC",
   110  		KeyLeft:       "\x1bOD",
   111  		KeyInsert:     "\x1b[2~",
   112  		KeyDelete:     "\x1b[3~",
   113  		KeyBackspace:  "\u007f",
   114  		KeyHome:       "\x1b[1~",
   115  		KeyEnd:        "\x1b[4~",
   116  		KeyPgUp:       "\x1b[5~",
   117  		KeyPgDn:       "\x1b[6~",
   118  		KeyF1:         "\x1bOP",
   119  		KeyF2:         "\x1bOQ",
   120  		KeyF3:         "\x1bOR",
   121  		KeyF4:         "\x1bOS",
   122  		KeyF5:         "\x1b[15~",
   123  		KeyF6:         "\x1b[17~",
   124  		KeyF7:         "\x1b[18~",
   125  		KeyF8:         "\x1b[19~",
   126  		KeyF9:         "\x1b[20~",
   127  		KeyF10:        "\x1b[21~",
   128  		KeyF11:        "\x1b[23~",
   129  		KeyF12:        "\x1b[24~",
   130  		KeyClear:      "\x1b[3;5~",
   131  		KeyBacktab:    "\x1b[Z",
   132  		Modifiers:     1,
   133  		TrueColor:     true,
   134  		AutoMargin:    true,
   135  	})
   136  }
   137  

View as plain text