xref: /freebsd/sys/teken/sequences (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
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
27# File format is as follows:
28#	Abbr		Abbreviation of sequence name
29#	Name		Sequence name (will be converted to C function name)
30#	Sequence	Bytes that form the sequence
31#	Args		Standard value of arguments passed to this sequence
32#			- `n' non-zero number (0 gets converted to 1)
33#			- `r' regular numeric argument
34#			- `v' means a variable number of arguments
35
36# Abbr		Name					Sequence	Args
37CBT		Cursor Backward Tabulation		^[ [ Z		n
38CHT		Cursor Forward Tabulation		^[ [ I		n
39CNL		Cursor Next Line			^[ [ E		n
40CPL		Cursor Previous Line			^[ [ F		n
41CPR		Cursor Position Report			^[ [ n		r
42CUB		Cursor Backward				^[ [ D		n
43CUD		Cursor Down				^[ [ B		n
44CUD		Cursor Down				^[ [ e		n
45CUF		Cursor Forward				^[ [ C		n
46CUF		Cursor Forward				^[ [ a		n
47CUP		Cursor Position				^[ [ H		n n
48CUP		Cursor Position				^[ [ f		n n
49CUU		Cursor Up				^[ [ A		n
50DA1		Primary Device Attributes		^[ [ c		r
51DA2		Secondary Device Attributes		^[ [ > c	r
52DC		Delete character			^[ [ P		n
53DCS		Device Control String			^[ P
54DECALN		Alignment test				^[ # 8
55DECDHL		Double Height Double Width Line Top	^[ # 3
56DECDHL		Double Height Double Width Line Bottom	^[ # 4
57DECDWL		Single Height Double Width Line		^[ # 6
58DECKPAM		Keypad application mode			^[ =
59DECKPNM		Keypad numeric mode			^[ >
60DECRC		Restore cursor				^[ 8
61DECRC		Restore cursor				^[ [ u
62DECRM		Reset DEC mode				^[ [ ? l	r
63DECSC		Save cursor				^[ 7
64DECSC		Save cursor				^[ [ s
65DECSCUSR	Set Cursor Style			^[ [ SP q	r
66DECSM		Set DEC mode				^[ [ ? h	r
67DECSTBM		Set top and bottom margins		^[ [ r		r r
68DECSWL		Single Height Single Width Line		^[ # 5
69DL		Delete line				^[ [ M		n
70DSR		Device Status Report			^[ [ ? n	r
71ECH		Erase character				^[ [ X		n
72ED		Erase display				^[ [ J		r
73EL		Erase line				^[ [ K		r
74G0SCS0		G0 SCS Special Graphics			^[ ( 0
75G0SCS1		G0 SCS US ASCII				^[ ( 1
76G0SCS2		G0 SCS Special Graphics			^[ ( 2
77G0SCSA		G0 SCS UK National			^[ ( A
78G0SCSB		G0 SCS US ASCII				^[ ( B
79G1SCS0		G1 SCS Special Graphics			^[ ) 0
80G1SCS1		G1 SCS US ASCII				^[ ) 1
81G1SCS2		G1 SCS Special Graphics			^[ ) 2
82G1SCSA		G1 SCS UK National			^[ ) A
83G1SCSB		G1 SCS US ASCII				^[ ) B
84HPA		Horizontal Position Absolute		^[ [ G		n
85HPA		Horizontal Position Absolute		^[ [ `		n
86HTS		Horizontal Tab Set			^[ H
87ICH		Insert character			^[ [ @		n
88IL		Insert line				^[ [ L		n
89IND		Index					^[ D
90NEL		Next line				^[ E
91OSC		Operating System Command		^[ ]
92RI		Reverse index				^[ M
93RIS		Reset to Initial State			^[ c
94RM		Reset Mode				^[ [ l		r
95SD		Pan Up					^[ [ T		n
96SGR		Set Graphic Rendition			^[ [ m		v
97SM		Set Mode				^[ [ h		r
98ST		String Terminator			^[ \\
99SU		Pan Down				^[ [ S		n
100TBC		Tab Clear				^[ [ g		r
101VPA		Vertical Position Absolute		^[ [ d		n
102
103# Cons25 compatibility sequences
104C25BLPD		Cons25 set bell pitch duration		^[ [ = B	r r
105C25BORD		Cons25 set border			^[ [ = A	r
106C25DBG		Cons25 set default background		^[ [ = G	r
107C25DFG		Cons25 set default foreground		^[ [ = F	r
108C25GCS		Cons25 set global cursor shape		^[ [ = C	v
109C25LCT		Cons25 set local cursor type		^[ [ = S	r
110C25MODE		Cons25 set terminal mode		^[ [ = T	r
111C25SGR		Cons25 set graphic rendition		^[ [ x		r r
112C25VTSW		Cons25 switch virtual terminal		^[ [ z		r
113
114# VT52 compatibility
115#DECID		VT52 DECID				^[ Z
116
117# ECMA-48
118REP		Repeat last graphic char		^[ [ b		n
119