sequences revision 302408
1139749Simp#- 2119853Scg# Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 350724Scg# All rights reserved. 450724Scg# 550724Scg# Redistribution and use in source and binary forms, with or without 650724Scg# modification, are permitted provided that the following conditions 750724Scg# are met: 850724Scg# 1. Redistributions of source code must retain the above copyright 950724Scg# notice, this list of conditions and the following disclaimer. 1050724Scg# 2. Redistributions in binary form must reproduce the above copyright 1150724Scg# notice, this list of conditions and the following disclaimer in the 1250724Scg# documentation and/or other materials provided with the distribution. 1350724Scg# 1450724Scg# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1550724Scg# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1650724Scg# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1750724Scg# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1850724Scg# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1950724Scg# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2050724Scg# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2150724Scg# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2250724Scg# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2350724Scg# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2450724Scg# SUCH DAMAGE. 2550724Scg# 2650724Scg# $FreeBSD: stable/11/sys/teken/sequences 214817 2010-11-05 00:56:21Z ed $ 2753465Scg 2853465Scg# File format is as follows: 29109818Sorion# Abbr Abbreviation of sequence name 3050724Scg# Name Sequence name (will be converted to C function name) 3170134Scg# Sequence Bytes that form the sequence 3250724Scg# Arguments Standard value of arguments passed to this sequence 3382180Scg# - `n' non-zero number (0 gets converted to 1) 3482180Scg# - `r' regular numeric argument 3570134Scg# - `v' means a variable number of arguments 3650724Scg 3778668Scg# Abbr Name Sequence Arguments 38113783SorionCBT Cursor Backward Tabulation ^[ [ Z n 39113783SorionCHT Cursor Forward Tabulation ^[ [ I n 40113783SorionCNL Cursor Next Line ^[ [ E n 41113783SorionCPL Cursor Previous Line ^[ [ F n 42113783SorionCPR Cursor Position Report ^[ [ n r 43113783SorionCUB Cursor Backward ^[ [ D n 44113783SorionCUD Cursor Down ^[ [ B n 45113783SorionCUD Cursor Down ^[ [ e n 46113783SorionCUF Cursor Forward ^[ [ C n 4778668ScgCUF Cursor Forward ^[ [ a n 4878668ScgCUP Cursor Position ^[ [ H n n 4974763ScgCUP Cursor Position ^[ [ f n n 5074763ScgCUU Cursor Up ^[ [ A n 5174763ScgDA1 Primary Device Attributes ^[ [ c r 5274763ScgDA2 Secondary Device Attributes ^[ [ > c r 5374763ScgDC Delete character ^[ [ P n 54111679SorionDCS Device Control String ^[ P 5574763ScgDECALN Alignment test ^[ # 8 5678668ScgDECDHL Double Height Double Width Line Top ^[ # 3 5774763ScgDECDHL Double Height Double Width Line Bottom ^[ # 4 5874763ScgDECDWL Single Height Double Width Line ^[ # 6 59107285ScgDECKPAM Keypad application mode ^[ = 6074763ScgDECKPNM Keypad numeric mode ^[ > 6174763ScgDECRC Restore cursor ^[ 8 62111679SorionDECRC Restore cursor ^[ [ u 63111679SorionDECRM Reset DEC mode ^[ [ ? l r 64111679SorionDECSC Save cursor ^[ 7 65111679SorionDECSC Save cursor ^[ [ s 66111679SorionDECSM Set DEC mode ^[ [ ? h r 6750724ScgDECSTBM Set top and bottom margins ^[ [ r r r 68111679SorionDECSWL Single Height Single Width Line ^[ # 5 69111679SorionDL Delete line ^[ [ M n 70111679SorionDSR Device Status Report ^[ [ ? n r 71111679SorionECH Erase character ^[ [ X n 72109818SorionED Erase display ^[ [ J r 7350724ScgEL Erase line ^[ [ K r 7450724ScgG0SCS0 G0 SCS Special Graphics ^[ ( 0 7550724ScgG0SCS1 G0 SCS US ASCII ^[ ( 1 76113783SorionG0SCS2 G0 SCS Special Graphics ^[ ( 2 7766013ScgG0SCSA G0 SCS UK National ^[ ( A 78119209SorionG0SCSB G0 SCS US ASCII ^[ ( B 7966013ScgG1SCS0 G1 SCS Special Graphics ^[ ) 0 8066013ScgG1SCS1 G1 SCS US ASCII ^[ ) 1 8166013ScgG1SCS2 G1 SCS Special Graphics ^[ ) 2 8266013ScgG1SCSA G1 SCS UK National ^[ ) A 8366013ScgG1SCSB G1 SCS US ASCII ^[ ) B 8466013ScgHPA Horizontal Position Absolute ^[ [ G n 8566013ScgHPA Horizontal Position Absolute ^[ [ ` n 86113783SorionHTS Horizontal Tab Set ^[ H 87113907SjhbICH Insert character ^[ [ @ n 88113783SorionIL Insert line ^[ [ L n 89113783SorionIND Index ^[ D 90113907SjhbNEL Next line ^[ E 9166013ScgOSC Operating System Command ^[ ] 9266013ScgRI Reverse index ^[ M 9366013ScgRIS Reset to Initial State ^[ c 9466013ScgRM Reset Mode ^[ [ l r 9550724ScgSD Pan Up ^[ [ T n 9650724ScgSGR Set Graphic Rendition ^[ [ m v 97111679SorionSM Set Mode ^[ [ h r 98111679SorionST String Terminator ^[ \\ 99111679SorionSU Pan Down ^[ [ S n 100111679SorionTBC Tab Clear ^[ [ g r 101111679SorionVPA Vertical Position Absolute ^[ [ d n 102111679Sorion 103111679Sorion# Cons25 compatibility sequences 104111679SorionC25ADBG Cons25 set adapter background ^[ [ = G r 105124875SmatkC25ADFG Cons25 set adapter foreground ^[ [ = F r 106113788SorionC25BLPD Cons25 set bell pitch duration ^[ [ = B r r 107111679SorionC25CURS Cons25 set cursor type ^[ [ = S r 108124875SmatkC25MODE Cons25 set terminal mode ^[ [ = T r 109111679SorionC25SGR Cons25 set graphic rendition ^[ [ x r r 110124875SmatkC25VTSW Cons25 switch virtual terminal ^[ [ z r 111111679Sorion 112111679Sorion# VT52 compatibility 113111679Sorion#DECID VT52 DECID ^[ Z 114124875Smatk