sequences revision 197481
1168515Sgshapiro#-
290792Sgshapiro# Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
390792Sgshapiro# All rights reserved.
490792Sgshapiro#
590792Sgshapiro# Redistribution and use in source and binary forms, with or without
690792Sgshapiro# modification, are permitted provided that the following conditions
790792Sgshapiro# are met:
890792Sgshapiro# 1. Redistributions of source code must retain the above copyright
990792Sgshapiro#    notice, this list of conditions and the following disclaimer.
1090792Sgshapiro# 2. Redistributions in binary form must reproduce the above copyright
1190792Sgshapiro#    notice, this list of conditions and the following disclaimer in the
1290792Sgshapiro#    documentation and/or other materials provided with the distribution.
13168515Sgshapiro#
14168515Sgshapiro# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1590792Sgshapiro# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1690792Sgshapiro# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1790792Sgshapiro# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1890792Sgshapiro# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1990792Sgshapiro# 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: head/sys/teken/sequences 197481 2009-09-25 13:51:01Z ed $
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#	Arguments	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	Arguments
38CBT	Cursor Backward Tabulation		^[ [ Z		n
39CHT	Cursor Forward Tabulation		^[ [ I		n
40CNL	Cursor Next Line			^[ [ E		n
41CPL	Cursor Previous Line			^[ [ F		n
42CPR	Cursor Position Report			^[ [ n		r
43CUB	Cursor Backward				^[ [ D		n
44CUD	Cursor Down				^[ [ B		n
45CUD	Cursor Down				^[ [ e		n
46CUF	Cursor Forward				^[ [ C		n
47CUF	Cursor Forward				^[ [ a		n
48CUP	Cursor Position				^[ [ H		n n
49CUP	Cursor Position				^[ [ f		n n
50CUU	Cursor Up				^[ [ A		n
51DA1	Primary Device Attributes		^[ [ c		r
52DA2	Secondary Device Attributes		^[ [ > c	r
53DC	Delete character			^[ [ P		n
54DCS	Device Control String			^[ P
55DECALN	Alignment test				^[ # 8
56DECDHL	Double Height Double Width Line Top	^[ # 3
57DECDHL	Double Height Double Width Line Bottom	^[ # 4
58DECDWL	Single Height Double Width Line		^[ # 6
59DECKPAM	Keypad application mode			^[ =
60DECKPNM	Keypad numeric mode			^[ >
61DECRC	Restore cursor				^[ 8
62DECRC	Restore cursor				^[ [ u
63DECRM	Reset DEC mode				^[ [ ? l	r
64DECSC	Save cursor				^[ 7
65DECSC	Save cursor				^[ [ s
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
91RI	Reverse index				^[ M
92RIS	Reset to Initial State			^[ c
93RM	Reset Mode				^[ [ l		r
94SD	Pan Up					^[ [ T		n
95SGR	Set Graphic Rendition			^[ [ m		v
96SM	Set Mode				^[ [ h		r
97ST	String Terminator			^[ \\
98SU	Pan Down				^[ [ S		n
99TBC	Tab Clear				^[ [ g		r
100VPA	Vertical Position Absolute		^[ [ d		n
101
102# Cons25 compatibility sequences
103C25ADBG	Cons25 set adapter background		^[ [ = G	r
104C25ADFG	Cons25 set adapter foreground		^[ [ = F	r
105C25BLPD	Cons25 set bell pitch duration		^[ [ = B	r r
106C25CURS	Cons25 set cursor type			^[ [ = S	r
107C25MODE	Cons25 set terminal mode		^[ [ = T	r
108C25VTSW	Cons25 switch virtual terminal		^[ [ z		r
109
110# VT52 compatibility
111#DECID	VT52 DECID				^[ Z
112