FreeBSD/Linux Kernel Cross Reference
sys/teken/sequences
1 #-
2 # Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
13 #
14 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 # SUCH DAMAGE.
25 #
26 # $FreeBSD$
27
28 # File format is as follows:
29 # Abbr Abbreviation of sequence name
30 # Name Sequence name (will be converted to C function name)
31 # Sequence Bytes that form the sequence
32 # Args Standard value of arguments passed to this sequence
33 # - `n' non-zero number (0 gets converted to 1)
34 # - `r' regular numeric argument
35 # - `v' means a variable number of arguments
36
37 # Abbr Name Sequence Args
38 CBT Cursor Backward Tabulation ^[ [ Z n
39 CHT Cursor Forward Tabulation ^[ [ I n
40 CNL Cursor Next Line ^[ [ E n
41 CPL Cursor Previous Line ^[ [ F n
42 CPR Cursor Position Report ^[ [ n r
43 CUB Cursor Backward ^[ [ D n
44 CUD Cursor Down ^[ [ B n
45 CUD Cursor Down ^[ [ e n
46 CUF Cursor Forward ^[ [ C n
47 CUF Cursor Forward ^[ [ a n
48 CUP Cursor Position ^[ [ H n n
49 CUP Cursor Position ^[ [ f n n
50 CUU Cursor Up ^[ [ A n
51 DA1 Primary Device Attributes ^[ [ c r
52 DA2 Secondary Device Attributes ^[ [ > c r
53 DC Delete character ^[ [ P n
54 DCS Device Control String ^[ P
55 DECALN Alignment test ^[ # 8
56 DECDHL Double Height Double Width Line Top ^[ # 3
57 DECDHL Double Height Double Width Line Bottom ^[ # 4
58 DECDWL Single Height Double Width Line ^[ # 6
59 DECKPAM Keypad application mode ^[ =
60 DECKPNM Keypad numeric mode ^[ >
61 DECRC Restore cursor ^[ 8
62 DECRC Restore cursor ^[ [ u
63 DECRM Reset DEC mode ^[ [ ? l r
64 DECSC Save cursor ^[ 7
65 DECSC Save cursor ^[ [ s
66 DECSCUSR Set Cursor Style ^[ [ SP q r
67 DECSM Set DEC mode ^[ [ ? h r
68 DECSTBM Set top and bottom margins ^[ [ r r r
69 DECSWL Single Height Single Width Line ^[ # 5
70 DL Delete line ^[ [ M n
71 DSR Device Status Report ^[ [ ? n r
72 ECH Erase character ^[ [ X n
73 ED Erase display ^[ [ J r
74 EL Erase line ^[ [ K r
75 G0SCS0 G0 SCS Special Graphics ^[ ( 0
76 G0SCS1 G0 SCS US ASCII ^[ ( 1
77 G0SCS2 G0 SCS Special Graphics ^[ ( 2
78 G0SCSA G0 SCS UK National ^[ ( A
79 G0SCSB G0 SCS US ASCII ^[ ( B
80 G1SCS0 G1 SCS Special Graphics ^[ ) 0
81 G1SCS1 G1 SCS US ASCII ^[ ) 1
82 G1SCS2 G1 SCS Special Graphics ^[ ) 2
83 G1SCSA G1 SCS UK National ^[ ) A
84 G1SCSB G1 SCS US ASCII ^[ ) B
85 HPA Horizontal Position Absolute ^[ [ G n
86 HPA Horizontal Position Absolute ^[ [ ` n
87 HTS Horizontal Tab Set ^[ H
88 ICH Insert character ^[ [ @ n
89 IL Insert line ^[ [ L n
90 IND Index ^[ D
91 NEL Next line ^[ E
92 OSC Operating System Command ^[ ]
93 RI Reverse index ^[ M
94 RIS Reset to Initial State ^[ c
95 RM Reset Mode ^[ [ l r
96 SD Pan Up ^[ [ T n
97 SGR Set Graphic Rendition ^[ [ m v
98 SM Set Mode ^[ [ h r
99 ST String Terminator ^[ \\
100 SU Pan Down ^[ [ S n
101 TBC Tab Clear ^[ [ g r
102 VPA Vertical Position Absolute ^[ [ d n
103
104 # Cons25 compatibility sequences
105 C25BLPD Cons25 set bell pitch duration ^[ [ = B r r
106 C25BORD Cons25 set border ^[ [ = A r
107 C25DBG Cons25 set default background ^[ [ = G r
108 C25DFG Cons25 set default foreground ^[ [ = F r
109 C25GCS Cons25 set global cursor shape ^[ [ = C v
110 C25LCT Cons25 set local cursor type ^[ [ = S r
111 C25MODE Cons25 set terminal mode ^[ [ = T r
112 C25SGR Cons25 set graphic rendition ^[ [ x r r
113 C25VTSW Cons25 switch virtual terminal ^[ [ z r
114
115 # VT52 compatibility
116 #DECID VT52 DECID ^[ Z
117
118 # ECMA-48
119 REP Repeat last graphic char ^[ [ b n
Cache object: 8b2eb31004b8f4564f94c15b88872206
|