sequences revision 187469
1234285Sdim#-
2234285Sdim# Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
3234285Sdim# All rights reserved.
4234285Sdim#
5234285Sdim# Redistribution and use in source and binary forms, with or without
6234285Sdim# modification, are permitted provided that the following conditions
7234285Sdim# are met:
8234285Sdim# 1. Redistributions of source code must retain the above copyright
9234285Sdim#    notice, this list of conditions and the following disclaimer.
10234285Sdim# 2. Redistributions in binary form must reproduce the above copyright
11234285Sdim#    notice, this list of conditions and the following disclaimer in the
12234285Sdim#    documentation and/or other materials provided with the distribution.
13234285Sdim#
14234285Sdim# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15234285Sdim# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16234285Sdim# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17234285Sdim# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18234285Sdim# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19234285Sdim# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20234285Sdim# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21234285Sdim# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22234285Sdim# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23234285Sdim# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24234285Sdim# SUCH DAMAGE.
25234285Sdim#
26234285Sdim# $FreeBSD: head/sys/dev/syscons/teken/sequences 187469 2009-01-20 11:34:28Z ed $
27234285Sdim
28234285Sdim# File format is as follows:
29234285Sdim#	Abbr		Abbreviation of sequence name
30234285Sdim#	Name		Sequence name (will be converted to C function name)
31234285Sdim#	Sequence	Bytes that form the sequence
32234285Sdim#	Arguments	Standard value of arguments passed to this sequence
33234285Sdim#			- `n' non-zero number (0 gets converted to 1)
34234285Sdim#			- `r' regular numeric argument
35234285Sdim#			- `v' means a variable number of arguments
36234285Sdim
37234285Sdim# Abbr	Name					Sequence	Arguments
38234285SdimCBT	Cursor Backward Tabulation		^[ [ Z		n
39234285SdimCHT	Cursor Forward Tabulation		^[ [ I		n
40234285SdimCNL	Cursor Next Line			^[ [ E		n
41234285SdimCPL	Cursor Previous Line			^[ [ F		n
42234285SdimCPR	Cursor Position Report			^[ [ n		r
43234285SdimCUB	Cursor Backward				^[ [ D		n
44234285SdimCUD	Cursor Down				^[ [ B		n
45234285SdimCUD	Cursor Down				^[ [ e		n
46234285SdimCUF	Cursor Forward				^[ [ C		n
47234285SdimCUF	Cursor Forward				^[ [ a		n
48234285SdimCUP	Cursor Position				^[ [ H		n n
49234285SdimCUP	Cursor Position				^[ [ f		n n
50234285SdimCUU	Cursor Up				^[ [ A		n
51234285SdimDA1	Primary Device Attributes		^[ [ c		r
52234285SdimDA2	Secondary Device Attributes		^[ [ > c	r
53234285SdimDC	Delete character			^[ [ P		n
54234285SdimDCS	Device Control String			^[ P
55234285SdimDECALN	Alignment test				^[ # 8
56234285SdimDECDHL	Double Height Double Width Line Top	^[ # 3
57234285SdimDECDHL	Double Height Double Width Line Bottom	^[ # 4
58234285SdimDECDWL	Single Height Double Width Line		^[ # 6
59234285SdimDECKPAM	Keypad application mode			^[ =
60234285SdimDECKPNM	Keypad numeric mode			^[ >
61234285SdimDECRC	Restore cursor				^[ 8
62234285SdimDECRC	Restore cursor				^[ [ u
63234285SdimDECRM	Reset DEC mode				^[ [ ? l	r
64234285SdimDECSC	Save cursor				^[ 7
65234285SdimDECSC	Save cursor				^[ [ s
66234285SdimDECSM	Set DEC mode				^[ [ ? h	r
67234285SdimDECSTBM	Set top and bottom margins		^[ [ r		r r
68234285SdimDECSWL	Single Height Single Width Line		^[ # 5
69234285SdimDL	Delete line				^[ [ M		n
70234285SdimDSR	Device Status Report			^[ [ ? n	r
71234285SdimECH	Erase character				^[ [ X		n
72234285SdimED	Erase display				^[ [ J		r
73234285SdimEL	Erase line				^[ [ K		r
74234285SdimG0SCS0	G0 SCS Special Graphics			^[ ( 0
75234285SdimG0SCS1	G0 SCS US ASCII				^[ ( 1
76234285SdimG0SCS2	G0 SCS Special Graphics			^[ ( 2
77234285SdimG0SCSA	G0 SCS UK National			^[ ( A
78234285SdimG0SCSB	G0 SCS US ASCII				^[ ( B
79234285SdimG1SCS0	G1 SCS Special Graphics			^[ ) 0
80234285SdimG1SCS1	G1 SCS US ASCII				^[ ) 1
81234285SdimG1SCS2	G1 SCS Special Graphics			^[ ) 2
82234285SdimG1SCSA	G1 SCS UK National			^[ ) A
83234285SdimG1SCSB	G1 SCS US ASCII				^[ ) B
84234285SdimHPA	Horizontal Position Absolute		^[ [ G		n
85234285SdimHPA	Horizontal Position Absolute		^[ [ `		n
86234285SdimHTS	Horizontal Tab Set			^[ H
87234285SdimICH	Insert character			^[ [ @		n
88234285SdimIL	Insert line				^[ [ L		n
89234285SdimIND	Index					^[ D
90234285SdimNEL	Next line				^[ E
91234285SdimRI	Reverse index				^[ M
92234285SdimRIS	Reset to Initial State			^[ c
93234285SdimRM	Reset Mode				^[ [ l		r
94234285SdimSD	Pan Up					^[ [ T		n
95234285SdimSGR	Set Graphic Rendition			^[ [ m		v
96234285SdimSM	Set Mode				^[ [ h		r
97234285SdimST	String Terminator			^[ \\
98234285SdimSU	Pan Down				^[ [ S		n
99234285SdimTBC	Tab Clear				^[ [ g		r
100234285SdimVPA	Vertical Position Absolute		^[ [ d		n
101234285Sdim
102234285Sdim# Cons25 compatibility sequences
103234285SdimC25ADBG	Cons25 set adapter background		^[ [ = G	r
104234285SdimC25ADFG	Cons25 set adapter foreground		^[ [ = F	r
105234285SdimC25CURS	Cons25 set cursor type			^[ [ = S	r
106234285SdimC25VTSW	Cons25 switch virtual terminal		^[ [ z		r
107234285Sdim
108234285Sdim# VT52 compatibility
109234285Sdim#DECID	VT52 DECID				^[ Z
110234285Sdim