sequences revision 187373
1186681Sed#-
2186681Sed# Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
3186681Sed# All rights reserved.
4186681Sed#
5186681Sed# Redistribution and use in source and binary forms, with or without
6186681Sed# modification, are permitted provided that the following conditions
7186681Sed# are met:
8186681Sed# 1. Redistributions of source code must retain the above copyright
9186681Sed#    notice, this list of conditions and the following disclaimer.
10186681Sed# 2. Redistributions in binary form must reproduce the above copyright
11186681Sed#    notice, this list of conditions and the following disclaimer in the
12186681Sed#    documentation and/or other materials provided with the distribution.
13186681Sed#
14186681Sed# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15186681Sed# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16186681Sed# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17186681Sed# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18186681Sed# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19186681Sed# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20186681Sed# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21186681Sed# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22186681Sed# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23186681Sed# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24186681Sed# SUCH DAMAGE.
25186681Sed#
26186681Sed# $FreeBSD: head/sys/dev/syscons/teken/sequences 187373 2009-01-17 22:53:53Z ed $
27186681Sed
28186681Sed# File format is as follows:
29186681Sed#	Abbr		Abbreviation of sequence name
30186681Sed#	Name		Sequence name (will be converted to C function name)
31186681Sed#	Sequence	Bytes that form the sequence
32186681Sed#	Arguments	Standard value of arguments passed to this sequence
33186681Sed#			- `n' non-zero number (0 gets converted to 1)
34186681Sed#			- `r' regular numeric argument
35186681Sed#			- `v' means a variable number of arguments
36186681Sed
37186681Sed# Abbr	Name					Sequence	Arguments
38186681SedCBT	Cursor Backward Tabulation		^[ [ Z		n
39186681SedCHT	Cursor Forward Tabulation		^[ [ I		n
40186681SedCNL	Cursor Next Line			^[ [ E		n
41186681SedCPL	Cursor Previous Line			^[ [ F		n
42186681SedCPR	Cursor Position Report			^[ [ n		r
43186681SedCUB	Cursor Backward				^[ [ D		n
44186681SedCUD	Cursor Down				^[ [ B		n
45186681SedCUD	Cursor Down				^[ [ e		n
46186681SedCUF	Cursor Forward				^[ [ C		n
47186681SedCUF	Cursor Forward				^[ [ a		n
48186681SedCUP	Cursor Position				^[ [ H		n n
49186681SedCUP	Cursor Position				^[ [ f		n n
50186681SedCUU	Cursor Up				^[ [ A		n
51186681SedDA1	Primary Device Attributes		^[ [ c		r
52186681SedDA2	Secondary Device Attributes		^[ [ > c	r
53186681SedDC	Delete character			^[ [ P		n
54186681SedDCS	Device Control String			^[ P
55186681SedDECALN	Alignment test				^[ # 8
56186681SedDECDHL	Double Height Double Width Line Top	^[ # 3
57186681SedDECDHL	Double Height Double Width Line Bottom	^[ # 4
58186681SedDECDWL	Single Height Double Width Line		^[ # 6
59186681SedDECKPAM	Keypad application mode			^[ =
60186681SedDECKPNM	Keypad numeric mode			^[ >
61186681SedDECRC	Restore cursor				^[ 8
62186681SedDECRC	Restore cursor				^[ [ u
63186681SedDECRM	Reset DEC mode				^[ [ ? l	r
64186681SedDECSC	Save cursor				^[ 7
65186681SedDECSC	Save cursor				^[ [ s
66186681SedDECSM	Set DEC mode				^[ [ ? h	r
67186681SedDECSTBM	Set top and bottom margins		^[ [ r		r r
68186681SedDECSWL	Single Height Single Width Line		^[ # 5
69186681SedDL	Delete line				^[ [ M		n
70186681SedDSR	Device Status Report			^[ [ ? n	r
71186681SedECH	Erase character				^[ [ X		n
72186681SedED	Erase display				^[ [ J		r
73186681SedEL	Erase line				^[ [ K		r
74186681SedHPA	Horizontal Position Absolute		^[ [ G		n
75186681SedHPA	Horizontal Position Absolute		^[ [ `		n
76186681SedHTS	Horizontal Tab Set			^[ H
77186681SedICH	Insert character			^[ [ @		n
78186681SedIL	Insert line				^[ [ L		n
79186681SedIND	Index					^[ D
80186681SedNEL	Next line				^[ E
81186681SedRI	Reverse index				^[ M
82186681SedRIS	Reset to Initial State			^[ c
83186681SedRM	Reset Mode				^[ [ l		r
84186681SedSCS	SCS					^[ ( 0
85186681SedSCS	SCS					^[ ( 1
86186681SedSCS	SCS					^[ ( 2
87186681SedSCS	SCS					^[ ( A
88186681SedSCS	SCS					^[ ( B
89186681SedSCS	SCS					^[ ) 0
90186681SedSCS	SCS					^[ ) 1
91186681SedSCS	SCS					^[ ) 2
92186681SedSCS	SCS					^[ ) A
93186681SedSCS	SCS					^[ ) B
94186681SedSD	Pan Up					^[ [ T		n
95186681SedSGR	Set Graphic Rendition			^[ [ m		v
96186681SedSM	Set Mode				^[ [ h		r
97186681SedST	String Terminator			^[ \\
98186681SedSU	Pan Down				^[ [ S		n
99186681SedTBC	Tab Clear				^[ [ g		r
100186681SedVPA	Vertical Position Absolute		^[ [ d		n
101186681Sed
102186681Sed# Cons25 compatibility sequences
103187373SedC25ADBG	Cons25 set adapter background		^[ [ = G	r
104187373SedC25ADFG	Cons25 set adapter foreground		^[ [ = F	r
105186681SedC25CURS	Cons25 set cursor type			^[ [ = S	r
106186681SedC25VTSW	Cons25 switch virtual terminal		^[ [ z		r
107186681Sed
108186681Sed# VT52 compatibility
109186681Sed#DECID	VT52 DECID				^[ Z
110