[c5c522c] | 1 | # Eterm terminfo file |
---|
| 2 | |
---|
| 3 | Eterm|Eterm Terminal Emulator (X11 Window System), |
---|
| 4 | # FIXME: xterm does not specify bce, bw, eo, or xon. Should we? |
---|
| 5 | am, bw, bce, km, mir, msgr, xenl, xon, eo, mc5i, |
---|
| 6 | cols#80, lines#24, it#8, lm#0, btns#5, |
---|
| 7 | cr=\r, bel=^G, |
---|
| 8 | colors#8, pairs#64, |
---|
| 9 | |
---|
| 10 | # Scroll text down/up one line |
---|
| 11 | ind=\n, ri=\eM, |
---|
| 12 | |
---|
| 13 | # Clear entire screen (home, then clear to EOS), EOS, EOL, BOL |
---|
| 14 | clear=\e[H\e[2J, ed=\e[J, el=\e[K, el1=\e[1K, |
---|
| 15 | |
---|
| 16 | # Change scrolling region to lines $1+1 to $2+1 |
---|
| 17 | # %i means add one to params 1 and 2; convert from 0-based to |
---|
| 18 | # 1-based counting. |
---|
| 19 | csr=\e[%i%p1%d;%p2%dr, |
---|
| 20 | |
---|
| 21 | # Move cursor to row $1+1, column $2+1. Can end with H or f |
---|
| 22 | cup=\e[%i%p1%d;%p2%dH, |
---|
| 23 | # Move cursor to column n, same row; or row n, same column |
---|
| 24 | hpa=\e[%i%p1%dG, vpa=\e[%i%p1%dd, |
---|
| 25 | # Move cursor up/down/forward/back by n chars |
---|
| 26 | cuu=\e[%p1%dA, cud=\e[%p1%dB, cuf=\e[%p1%dC, cub=\e[%p1%dD, |
---|
| 27 | # Move cursor up/down/forward/back by 1 char |
---|
| 28 | cuu1=\e[A, cud1=\e[B, cuf1=\e[C, cub1=\b, |
---|
| 29 | # Home cursor (row 1, col 1). Was \e[1;1H but 1's are redundant |
---|
| 30 | home=\e[H, |
---|
| 31 | |
---|
| 32 | # Enter/leave insert mode |
---|
| 33 | smir=\e[4h, rmir=\e[4l, |
---|
| 34 | |
---|
| 35 | # Set tab stops, clear tab stops, tab character |
---|
| 36 | hts=\eH, tbc=\e[3g, ht=\t, |
---|
| 37 | |
---|
| 38 | # Turn on/off auto margins |
---|
| 39 | smam=\e[?7h, rmam=\e[?7l, |
---|
| 40 | # Make cursor invisible, normal (bold cursor cvvis not supported) |
---|
| 41 | civis=\e[?25l, cnorm=\e[?25h, |
---|
| 42 | # Save/restore cursor position |
---|
| 43 | sc=\e7, rc=\e8, |
---|
| 44 | |
---|
| 45 | # Alternate character set (line drawing), enable/enter/exit ACS |
---|
| 46 | acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, |
---|
| 47 | # The line below is used by some vtXXX emulators, but I don't think it's right for us. |
---|
| 48 | # acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, |
---|
| 49 | enacs=\e)0, smacs=^N, rmacs=^O, |
---|
| 50 | |
---|
| 51 | # Delete/insert n chars, 1 char |
---|
| 52 | dch=\e[%p1%dP, ich=\e[%p1%d@, dch1=\e[P, ich1=\e[@, |
---|
| 53 | # Delete/insert n lines, 1 line |
---|
| 54 | dl=\e[%p1%dM, il=\e[%p1%dL, dl1=\e[M, il1=\e[L, |
---|
| 55 | # Erase next n chars |
---|
| 56 | ech=\e[%p1%dX, |
---|
| 57 | |
---|
| 58 | # Activate SGR mode: bold, reverse video, blink (bright bg color) |
---|
| 59 | bold=\e[1m, rev=\e[7m, blink=\e[5m, |
---|
| 60 | # Start/stop underline, standout (reverse video) |
---|
| 61 | smul=\e[4m, rmul=\e[24m, smso=\e[7m, rmso=\e[27m, |
---|
| 62 | # Turn off all attributes (exit_attribute_mode) |
---|
| 63 | sgr0=\e[m^O, |
---|
| 64 | # Flash the screen (sets and resets reverse video for the whole screen) |
---|
| 65 | flash=\e[?5h\e[?5l, |
---|
| 66 | |
---|
| 67 | # Enter/leave application keypad mode. We always send the ANSI values |
---|
| 68 | # because that seems to be the most portable solution. The valid escape |
---|
| 69 | # sequences are here but are commented out for this reason. The 1st set |
---|
| 70 | # is for keypad cursor keys, the second is for application cursor key |
---|
| 71 | # mode. The third is what gets sent by default. |
---|
| 72 | ## smkx=\e=, rmkx=\e>, |
---|
| 73 | smkx=, rmkx=, |
---|
| 74 | ## kcuu1=\e[Ox, kcud1=\e[Or, kcuf1=\e[Ov, kcub1=\e[Ot, |
---|
| 75 | ## kcuu1=\eOA, kcud1=\eOB, kcuf1=\eOC, kcub1=\eOD, |
---|
| 76 | kcuu1=\e[A, kcud1=\e[B, kcuf1=\e[C, kcub1=\e[D, |
---|
| 77 | |
---|
| 78 | # Keypad 7, 9, 5, 1, and 3. The 1st set are the appl. keypad mode |
---|
| 79 | # sequences. The 2nd set are the values for Home/End/PgUp/PgDn. |
---|
| 80 | # The 5 key is the same either way. |
---|
| 81 | ## ka1=\eOw, ka3=\eOy, kb2=\eOu, kc1=\eOq, kc3=\eOs, |
---|
| 82 | ka1=\e[7~, ka3=\e[5~, kb2=\eOu, kc1=\e[8~, kc3=\e[6~, |
---|
| 83 | |
---|
| 84 | # Function keys |
---|
| 85 | kf1=\e[11~, kf2=\e[12~, kf3=\e[13~, kf4=\e[14~, kf5=\e[15~, |
---|
| 86 | kf6=\e[17~, kf7=\e[18~, kf8=\e[19~, kf9=\e[20~, kf10=\e[21~, |
---|
| 87 | kf11=\e[23~, kf12=\e[24~, kf13=\e[25~, kf14=\e[26~, kf15=\e[28~, |
---|
| 88 | kf16=\e[29~, kf17=\e[31~, kf18=\e[32~, kf19=\e[33~, kf20=\e[34~, |
---|
| 89 | |
---|
| 90 | # Find, Insert, Delete, Select, Prior (PgUp), Next (PgDn). The first set of |
---|
| 91 | # sequences are accurate. The second set lets Find/Select act like Home/End. |
---|
| 92 | kfnd=\e[1~, kich1=\e[2~, kdch1=\e[3~, kslt=\e[4~, kpp=\e[5~, knp=\e[6~, |
---|
| 93 | ## kfnd=\e[7~, kich1=\e[2~, kdch1=\e[3~, kslt=\e[8~, kpp=\e[5~, knp=\e[6~, |
---|
| 94 | |
---|
| 95 | # Home (vt100 may use khome=\e[H), End, Backspace, Keypad Enter, Shift-Tab |
---|
| 96 | # The 1st set is the default. The 2nd set is based on Linux console/vt220 |
---|
| 97 | # settings for Home/End and Backspace sending Delete (^?). The 3rd set gives |
---|
| 98 | # xterm's settings for Home/End. |
---|
| 99 | khome=\e[7~, kend=\e[8~, kbs=\010, kent=\eOM, kcbt=\e[Z, |
---|
| 100 | ## khome=\e[1~, kend=\e[4~, kbs=\177, kent=\eOM, kcbt=\e[Z, |
---|
| 101 | ## khome=\e[H, kend=\e[F, kbs=\010, kent=\eOM, kcbt=\e[Z, |
---|
| 102 | |
---|
| 103 | # Help and Begin keys |
---|
| 104 | khlp=\e[28~, kbeg=\eOu, |
---|
| 105 | # "Shifted" right and left (actually Ctrl, not Shift) |
---|
| 106 | kRIT=\e[c, kLFT=\e[d, |
---|
| 107 | # Shift-Prior/Next (PgUp/PgDn). Usually, these key combos scroll. |
---|
| 108 | kPRV=\e[5$, kNXT=\e[6$, |
---|
| 109 | # Shift-Delete/Home/End and Ctrl-End. It's a $ instead of a ~ for |
---|
| 110 | # Shift-, a ^ for Ctrl-, and @ for Ctrl-Shift-. |
---|
| 111 | kDC=\e[3$, kHOM=\e[7$, kEND=\e[8$, kel=\e[8\^, |
---|
| 112 | |
---|
| 113 | # Reset terminal, turn off all attributes |
---|
| 114 | rs1=\e>\e[1;3;4;5;6l\e[?7h\e[m\e[r\e[2J\e[H, |
---|
| 115 | rs2=\e[r\e[m\e[2J\e[H\e[?7h\e[?1;3;4;6l\e[4l\e>, |
---|
| 116 | # Init terminal |
---|
| 117 | is1=\e[?47l\e>\e[?1l, |
---|
| 118 | is2=\e[r\e[m\e[2J\e[H\e[?7h\e[?1;3;4;6l\e[4l, |
---|
| 119 | |
---|
| 120 | # Enter/leave cursor address mode. The 1st set uses the |
---|
| 121 | # secondary screen. The 2nd one doesn't. |
---|
| 122 | smcup=\e7\e[?47h, rmcup=\e[2J\e[?47l\e8, |
---|
| 123 | ## smcup=\e7, rmcup=\e8, |
---|
| 124 | |
---|
| 125 | # Start/stop redirection to the printpipe |
---|
| 126 | mc4=\e[4i, mc5=\e[5i, |
---|
| 127 | |
---|
| 128 | # User-defined string capabilities |
---|
| 129 | # Cursor Position Report (CPR) |
---|
| 130 | u6=\e[%i%d;%dR, |
---|
| 131 | # Report current screen position (DSR 6) (replies with u6) |
---|
| 132 | u7=\e[6n, |
---|
| 133 | # vt100 answerback |
---|
| 134 | u8=\e[?1;2c, |
---|
| 135 | # Request identity (replies with u8) If VT100_ANS is enabled, use |
---|
| 136 | # the first value. If ENQ_ANS is enabled, use the second value. |
---|
| 137 | u9=\e[c, |
---|
| 138 | ## u9=^E, |
---|
| 139 | |
---|
| 140 | # Add ANSI color support |
---|
| 141 | sgr=\e[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;, |
---|
| 142 | ## sgr=\e[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, |
---|
| 143 | |
---|
| 144 | # Mouse info packet introducer |
---|
| 145 | kmous=\e[M, |
---|
| 146 | |
---|
| 147 | # Revert to the original foreground/background pair |
---|
| 148 | op=\e[39;49m, |
---|
| 149 | # Set foreground color, background color |
---|
| 150 | setaf=\e[3%p1%dm, setab=\e[4%p1%dm, |
---|