19b934d09SEd Schouten#- 29b934d09SEd Schouten# Copyright (c) 2008-2009 Ed Schouten <[email protected]> 39b934d09SEd Schouten# All rights reserved. 49b934d09SEd Schouten# 59b934d09SEd Schouten# Redistribution and use in source and binary forms, with or without 69b934d09SEd Schouten# modification, are permitted provided that the following conditions 79b934d09SEd Schouten# are met: 89b934d09SEd Schouten# 1. Redistributions of source code must retain the above copyright 99b934d09SEd Schouten# notice, this list of conditions and the following disclaimer. 109b934d09SEd Schouten# 2. Redistributions in binary form must reproduce the above copyright 119b934d09SEd Schouten# notice, this list of conditions and the following disclaimer in the 129b934d09SEd Schouten# documentation and/or other materials provided with the distribution. 139b934d09SEd Schouten# 149b934d09SEd Schouten# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 159b934d09SEd Schouten# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 169b934d09SEd Schouten# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 179b934d09SEd Schouten# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 189b934d09SEd Schouten# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 199b934d09SEd Schouten# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 209b934d09SEd Schouten# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 219b934d09SEd Schouten# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 229b934d09SEd Schouten# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 239b934d09SEd Schouten# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 249b934d09SEd Schouten# SUCH DAMAGE. 259b934d09SEd Schouten# 269b934d09SEd Schouten# $FreeBSD$ 279b934d09SEd Schouten 289b934d09SEd Schouten# File format is as follows: 299b934d09SEd Schouten# Abbr Abbreviation of sequence name 309b934d09SEd Schouten# Name Sequence name (will be converted to C function name) 319b934d09SEd Schouten# Sequence Bytes that form the sequence 3201e6e6c0SJean-Sébastien Pédron# Args Standard value of arguments passed to this sequence 339b934d09SEd Schouten# - `n' non-zero number (0 gets converted to 1) 349b934d09SEd Schouten# - `r' regular numeric argument 359b934d09SEd Schouten# - `v' means a variable number of arguments 369b934d09SEd Schouten 3701e6e6c0SJean-Sébastien Pédron# Abbr Name Sequence Args 389b934d09SEd SchoutenCBT Cursor Backward Tabulation ^[ [ Z n 399b934d09SEd SchoutenCHT Cursor Forward Tabulation ^[ [ I n 409b934d09SEd SchoutenCNL Cursor Next Line ^[ [ E n 419b934d09SEd SchoutenCPL Cursor Previous Line ^[ [ F n 429b934d09SEd SchoutenCPR Cursor Position Report ^[ [ n r 439b934d09SEd SchoutenCUB Cursor Backward ^[ [ D n 449b934d09SEd SchoutenCUD Cursor Down ^[ [ B n 459b934d09SEd SchoutenCUD Cursor Down ^[ [ e n 469b934d09SEd SchoutenCUF Cursor Forward ^[ [ C n 479b934d09SEd SchoutenCUF Cursor Forward ^[ [ a n 489b934d09SEd SchoutenCUP Cursor Position ^[ [ H n n 499b934d09SEd SchoutenCUP Cursor Position ^[ [ f n n 509b934d09SEd SchoutenCUU Cursor Up ^[ [ A n 519b934d09SEd SchoutenDA1 Primary Device Attributes ^[ [ c r 529b934d09SEd SchoutenDA2 Secondary Device Attributes ^[ [ > c r 539b934d09SEd SchoutenDC Delete character ^[ [ P n 549b934d09SEd SchoutenDCS Device Control String ^[ P 559b934d09SEd SchoutenDECALN Alignment test ^[ # 8 569b934d09SEd SchoutenDECDHL Double Height Double Width Line Top ^[ # 3 579b934d09SEd SchoutenDECDHL Double Height Double Width Line Bottom ^[ # 4 589b934d09SEd SchoutenDECDWL Single Height Double Width Line ^[ # 6 599b934d09SEd SchoutenDECKPAM Keypad application mode ^[ = 609b934d09SEd SchoutenDECKPNM Keypad numeric mode ^[ > 619b934d09SEd SchoutenDECRC Restore cursor ^[ 8 629b934d09SEd SchoutenDECRC Restore cursor ^[ [ u 639b934d09SEd SchoutenDECRM Reset DEC mode ^[ [ ? l r 649b934d09SEd SchoutenDECSC Save cursor ^[ 7 659b934d09SEd SchoutenDECSC Save cursor ^[ [ s 667b0a9efaSJean-Sébastien PédronDECSCUSR Set Cursor Style ^[ [ SP q r 679b934d09SEd SchoutenDECSM Set DEC mode ^[ [ ? h r 689b934d09SEd SchoutenDECSTBM Set top and bottom margins ^[ [ r r r 699b934d09SEd SchoutenDECSWL Single Height Single Width Line ^[ # 5 709b934d09SEd SchoutenDL Delete line ^[ [ M n 719b934d09SEd SchoutenDSR Device Status Report ^[ [ ? n r 729b934d09SEd SchoutenECH Erase character ^[ [ X n 739b934d09SEd SchoutenED Erase display ^[ [ J r 749b934d09SEd SchoutenEL Erase line ^[ [ K r 759b934d09SEd SchoutenG0SCS0 G0 SCS Special Graphics ^[ ( 0 769b934d09SEd SchoutenG0SCS1 G0 SCS US ASCII ^[ ( 1 779b934d09SEd SchoutenG0SCS2 G0 SCS Special Graphics ^[ ( 2 789b934d09SEd SchoutenG0SCSA G0 SCS UK National ^[ ( A 799b934d09SEd SchoutenG0SCSB G0 SCS US ASCII ^[ ( B 809b934d09SEd SchoutenG1SCS0 G1 SCS Special Graphics ^[ ) 0 819b934d09SEd SchoutenG1SCS1 G1 SCS US ASCII ^[ ) 1 829b934d09SEd SchoutenG1SCS2 G1 SCS Special Graphics ^[ ) 2 839b934d09SEd SchoutenG1SCSA G1 SCS UK National ^[ ) A 849b934d09SEd SchoutenG1SCSB G1 SCS US ASCII ^[ ) B 859b934d09SEd SchoutenHPA Horizontal Position Absolute ^[ [ G n 869b934d09SEd SchoutenHPA Horizontal Position Absolute ^[ [ ` n 879b934d09SEd SchoutenHTS Horizontal Tab Set ^[ H 889b934d09SEd SchoutenICH Insert character ^[ [ @ n 899b934d09SEd SchoutenIL Insert line ^[ [ L n 909b934d09SEd SchoutenIND Index ^[ D 919b934d09SEd SchoutenNEL Next line ^[ E 924a11e7f1SEd SchoutenOSC Operating System Command ^[ ] 939b934d09SEd SchoutenRI Reverse index ^[ M 949b934d09SEd SchoutenRIS Reset to Initial State ^[ c 959b934d09SEd SchoutenRM Reset Mode ^[ [ l r 969b934d09SEd SchoutenSD Pan Up ^[ [ T n 979b934d09SEd SchoutenSGR Set Graphic Rendition ^[ [ m v 989b934d09SEd SchoutenSM Set Mode ^[ [ h r 999b934d09SEd SchoutenST String Terminator ^[ \\ 1009b934d09SEd SchoutenSU Pan Down ^[ [ S n 1019b934d09SEd SchoutenTBC Tab Clear ^[ [ g r 1029b934d09SEd SchoutenVPA Vertical Position Absolute ^[ [ d n 1039b934d09SEd Schouten 1049b934d09SEd Schouten# Cons25 compatibility sequences 1059b934d09SEd SchoutenC25BLPD Cons25 set bell pitch duration ^[ [ = B r r 10697933a41SBruce EvansC25BORD Cons25 set border ^[ [ = A r 10797933a41SBruce EvansC25DBG Cons25 set default background ^[ [ = G r 10897933a41SBruce EvansC25DFG Cons25 set default foreground ^[ [ = F r 10915e0c651SBruce EvansC25GCS Cons25 set global cursor shape ^[ [ = C v 11015e0c651SBruce EvansC25LCT Cons25 set local cursor type ^[ [ = S r 1112c549cc4SEd SchoutenC25MODE Cons25 set terminal mode ^[ [ = T r 11268fdfe29SEd SchoutenC25SGR Cons25 set graphic rendition ^[ [ x r r 1139b934d09SEd SchoutenC25VTSW Cons25 switch virtual terminal ^[ [ z r 1149b934d09SEd Schouten 1159b934d09SEd Schouten# VT52 compatibility 1169b934d09SEd Schouten#DECID VT52 DECID ^[ Z 117*3eb27bf0SPoul-Henning Kamp 118*3eb27bf0SPoul-Henning Kamp# ECMA-48 119*3eb27bf0SPoul-Henning KampREP Repeat last graphic char ^[ [ b n 120