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$ 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 74187469SedG0SCS0 G0 SCS Special Graphics ^[ ( 0 75187469SedG0SCS1 G0 SCS US ASCII ^[ ( 1 76187469SedG0SCS2 G0 SCS Special Graphics ^[ ( 2 77187469SedG0SCSA G0 SCS UK National ^[ ( A 78187469SedG0SCSB G0 SCS US ASCII ^[ ( B 79187469SedG1SCS0 G1 SCS Special Graphics ^[ ) 0 80187469SedG1SCS1 G1 SCS US ASCII ^[ ) 1 81187469SedG1SCS2 G1 SCS Special Graphics ^[ ) 2 82187469SedG1SCSA G1 SCS UK National ^[ ) A 83187469SedG1SCSB G1 SCS US ASCII ^[ ) B 84186681SedHPA Horizontal Position Absolute ^[ [ G n 85186681SedHPA Horizontal Position Absolute ^[ [ ` n 86186681SedHTS Horizontal Tab Set ^[ H 87186681SedICH Insert character ^[ [ @ n 88186681SedIL Insert line ^[ [ L n 89186681SedIND Index ^[ D 90186681SedNEL Next line ^[ E 91197853SedOSC Operating System Command ^[ ] 92186681SedRI Reverse index ^[ M 93186681SedRIS Reset to Initial State ^[ c 94186681SedRM Reset Mode ^[ [ l r 95186681SedSD Pan Up ^[ [ T n 96186681SedSGR Set Graphic Rendition ^[ [ m v 97186681SedSM Set Mode ^[ [ h r 98186681SedST String Terminator ^[ \\ 99186681SedSU Pan Down ^[ [ S n 100186681SedTBC Tab Clear ^[ [ g r 101186681SedVPA Vertical Position Absolute ^[ [ d n 102186681Sed 103186681Sed# Cons25 compatibility sequences 104187373SedC25ADBG Cons25 set adapter background ^[ [ = G r 105187373SedC25ADFG Cons25 set adapter foreground ^[ [ = F r 106193184SedC25BLPD Cons25 set bell pitch duration ^[ [ = B r r 107186681SedC25CURS Cons25 set cursor type ^[ [ = S r 108197481SedC25MODE Cons25 set terminal mode ^[ [ = T r 109214817SedC25SGR Cons25 set graphic rendition ^[ [ x r r 110186681SedC25VTSW Cons25 switch virtual terminal ^[ [ z r 111186681Sed 112186681Sed# VT52 compatibility 113186681Sed#DECID VT52 DECID ^[ Z 114