19b934d09SEd Schouten#- 29b934d09SEd Schouten# Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 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 279b934d09SEd Schouten# File format is as follows: 289b934d09SEd Schouten# Abbr Abbreviation of sequence name 299b934d09SEd Schouten# Name Sequence name (will be converted to C function name) 309b934d09SEd Schouten# Sequence Bytes that form the sequence 3101e6e6c0SJean-Sébastien Pédron# Args Standard value of arguments passed to this sequence 329b934d09SEd Schouten# - `n' non-zero number (0 gets converted to 1) 339b934d09SEd Schouten# - `r' regular numeric argument 349b934d09SEd Schouten# - `v' means a variable number of arguments 359b934d09SEd Schouten 3601e6e6c0SJean-Sébastien Pédron# Abbr Name Sequence Args 379b934d09SEd SchoutenCBT Cursor Backward Tabulation ^[ [ Z n 389b934d09SEd SchoutenCHT Cursor Forward Tabulation ^[ [ I n 399b934d09SEd SchoutenCNL Cursor Next Line ^[ [ E n 409b934d09SEd SchoutenCPL Cursor Previous Line ^[ [ F n 419b934d09SEd SchoutenCPR Cursor Position Report ^[ [ n r 429b934d09SEd SchoutenCUB Cursor Backward ^[ [ D n 439b934d09SEd SchoutenCUD Cursor Down ^[ [ B n 449b934d09SEd SchoutenCUD Cursor Down ^[ [ e n 459b934d09SEd SchoutenCUF Cursor Forward ^[ [ C n 469b934d09SEd SchoutenCUF Cursor Forward ^[ [ a n 479b934d09SEd SchoutenCUP Cursor Position ^[ [ H n n 489b934d09SEd SchoutenCUP Cursor Position ^[ [ f n n 499b934d09SEd SchoutenCUU Cursor Up ^[ [ A n 509b934d09SEd SchoutenDA1 Primary Device Attributes ^[ [ c r 519b934d09SEd SchoutenDA2 Secondary Device Attributes ^[ [ > c r 529b934d09SEd SchoutenDC Delete character ^[ [ P n 539b934d09SEd SchoutenDCS Device Control String ^[ P 549b934d09SEd SchoutenDECALN Alignment test ^[ # 8 559b934d09SEd SchoutenDECDHL Double Height Double Width Line Top ^[ # 3 569b934d09SEd SchoutenDECDHL Double Height Double Width Line Bottom ^[ # 4 579b934d09SEd SchoutenDECDWL Single Height Double Width Line ^[ # 6 589b934d09SEd SchoutenDECKPAM Keypad application mode ^[ = 599b934d09SEd SchoutenDECKPNM Keypad numeric mode ^[ > 609b934d09SEd SchoutenDECRC Restore cursor ^[ 8 619b934d09SEd SchoutenDECRC Restore cursor ^[ [ u 629b934d09SEd SchoutenDECRM Reset DEC mode ^[ [ ? l r 639b934d09SEd SchoutenDECSC Save cursor ^[ 7 649b934d09SEd SchoutenDECSC Save cursor ^[ [ s 657b0a9efaSJean-Sébastien PédronDECSCUSR Set Cursor Style ^[ [ SP q r 669b934d09SEd SchoutenDECSM Set DEC mode ^[ [ ? h r 679b934d09SEd SchoutenDECSTBM Set top and bottom margins ^[ [ r r r 689b934d09SEd SchoutenDECSWL Single Height Single Width Line ^[ # 5 699b934d09SEd SchoutenDL Delete line ^[ [ M n 709b934d09SEd SchoutenDSR Device Status Report ^[ [ ? n r 719b934d09SEd SchoutenECH Erase character ^[ [ X n 729b934d09SEd SchoutenED Erase display ^[ [ J r 739b934d09SEd SchoutenEL Erase line ^[ [ K r 749b934d09SEd SchoutenG0SCS0 G0 SCS Special Graphics ^[ ( 0 759b934d09SEd SchoutenG0SCS1 G0 SCS US ASCII ^[ ( 1 769b934d09SEd SchoutenG0SCS2 G0 SCS Special Graphics ^[ ( 2 779b934d09SEd SchoutenG0SCSA G0 SCS UK National ^[ ( A 789b934d09SEd SchoutenG0SCSB G0 SCS US ASCII ^[ ( B 799b934d09SEd SchoutenG1SCS0 G1 SCS Special Graphics ^[ ) 0 809b934d09SEd SchoutenG1SCS1 G1 SCS US ASCII ^[ ) 1 819b934d09SEd SchoutenG1SCS2 G1 SCS Special Graphics ^[ ) 2 829b934d09SEd SchoutenG1SCSA G1 SCS UK National ^[ ) A 839b934d09SEd SchoutenG1SCSB G1 SCS US ASCII ^[ ) B 849b934d09SEd SchoutenHPA Horizontal Position Absolute ^[ [ G n 859b934d09SEd SchoutenHPA Horizontal Position Absolute ^[ [ ` n 869b934d09SEd SchoutenHTS Horizontal Tab Set ^[ H 879b934d09SEd SchoutenICH Insert character ^[ [ @ n 889b934d09SEd SchoutenIL Insert line ^[ [ L n 899b934d09SEd SchoutenIND Index ^[ D 909b934d09SEd SchoutenNEL Next line ^[ E 914a11e7f1SEd SchoutenOSC Operating System Command ^[ ] 929b934d09SEd SchoutenRI Reverse index ^[ M 939b934d09SEd SchoutenRIS Reset to Initial State ^[ c 949b934d09SEd SchoutenRM Reset Mode ^[ [ l r 959b934d09SEd SchoutenSD Pan Up ^[ [ T n 969b934d09SEd SchoutenSGR Set Graphic Rendition ^[ [ m v 979b934d09SEd SchoutenSM Set Mode ^[ [ h r 989b934d09SEd SchoutenST String Terminator ^[ \\ 999b934d09SEd SchoutenSU Pan Down ^[ [ S n 1009b934d09SEd SchoutenTBC Tab Clear ^[ [ g r 1019b934d09SEd SchoutenVPA Vertical Position Absolute ^[ [ d n 1029b934d09SEd Schouten 1039b934d09SEd Schouten# Cons25 compatibility sequences 1049b934d09SEd SchoutenC25BLPD Cons25 set bell pitch duration ^[ [ = B r r 10597933a41SBruce EvansC25BORD Cons25 set border ^[ [ = A r 10697933a41SBruce EvansC25DBG Cons25 set default background ^[ [ = G r 10797933a41SBruce EvansC25DFG Cons25 set default foreground ^[ [ = F r 10815e0c651SBruce EvansC25GCS Cons25 set global cursor shape ^[ [ = C v 10915e0c651SBruce EvansC25LCT Cons25 set local cursor type ^[ [ = S r 1102c549cc4SEd SchoutenC25MODE Cons25 set terminal mode ^[ [ = T r 11168fdfe29SEd SchoutenC25SGR Cons25 set graphic rendition ^[ [ x r r 1129b934d09SEd SchoutenC25VTSW Cons25 switch virtual terminal ^[ [ z r 1139b934d09SEd Schouten 1149b934d09SEd Schouten# VT52 compatibility 1159b934d09SEd Schouten#DECID VT52 DECID ^[ Z 116*3eb27bf0SPoul-Henning Kamp 117*3eb27bf0SPoul-Henning Kamp# ECMA-48 118*3eb27bf0SPoul-Henning KampREP Repeat last graphic char ^[ [ b n 119