1#- 2# Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 3# All rights reserved. 4# 5# SPDX-License-Identifier: BSD-2-Clause 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions 9# are met: 10# 1. Redistributions of source code must retain the above copyright 11# notice, this list of conditions and the following disclaimer. 12# 2. Redistributions in binary form must reproduce the above copyright 13# notice, this list of conditions and the following disclaimer in the 14# documentation and/or other materials provided with the distribution. 15# 16# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# 28# $FreeBSD: head/sys/teken/sequences 334316 2018-05-29 08:41:44Z dumbbell $ 29 30# File format is as follows: 31# Abbr Abbreviation of sequence name 32# Name Sequence name (will be converted to C function name) 33# Sequence Bytes that form the sequence 34# Args Standard value of arguments passed to this sequence 35# - `n' non-zero number (0 gets converted to 1) 36# - `r' regular numeric argument 37# - `v' means a variable number of arguments 38 39# Abbr Name Sequence Args 40CBT Cursor Backward Tabulation ^[ [ Z n 41CHT Cursor Forward Tabulation ^[ [ I n 42CNL Cursor Next Line ^[ [ E n 43CPL Cursor Previous Line ^[ [ F n 44CPR Cursor Position Report ^[ [ n r 45CUB Cursor Backward ^[ [ D n 46CUD Cursor Down ^[ [ B n 47CUD Cursor Down ^[ [ e n 48CUF Cursor Forward ^[ [ C n 49CUF Cursor Forward ^[ [ a n 50CUP Cursor Position ^[ [ H n n 51CUP Cursor Position ^[ [ f n n 52CUU Cursor Up ^[ [ A n 53DA1 Primary Device Attributes ^[ [ c r 54DA2 Secondary Device Attributes ^[ [ > c r 55DC Delete character ^[ [ P n 56DCS Device Control String ^[ P 57DECALN Alignment test ^[ # 8 58DECDHL Double Height Double Width Line Top ^[ # 3 59DECDHL Double Height Double Width Line Bottom ^[ # 4 60DECDWL Single Height Double Width Line ^[ # 6 61DECKPAM Keypad application mode ^[ = 62DECKPNM Keypad numeric mode ^[ > 63DECRC Restore cursor ^[ 8 64DECRC Restore cursor ^[ [ u 65DECRM Reset DEC mode ^[ [ ? l r 66DECSC Save cursor ^[ 7 67DECSC Save cursor ^[ [ s 68DECSCUSR Set Cursor Style ^[ [ SP q r 69DECSM Set DEC mode ^[ [ ? h r 70DECSTBM Set top and bottom margins ^[ [ r r r 71DECSWL Single Height Single Width Line ^[ # 5 72DL Delete line ^[ [ M n 73DSR Device Status Report ^[ [ ? n r 74ECH Erase character ^[ [ X n 75ED Erase display ^[ [ J r 76EL Erase line ^[ [ K r 77G0SCS0 G0 SCS Special Graphics ^[ ( 0 78G0SCS1 G0 SCS US ASCII ^[ ( 1 79G0SCS2 G0 SCS Special Graphics ^[ ( 2 80G0SCSA G0 SCS UK National ^[ ( A 81G0SCSB G0 SCS US ASCII ^[ ( B 82G1SCS0 G1 SCS Special Graphics ^[ ) 0 83G1SCS1 G1 SCS US ASCII ^[ ) 1 84G1SCS2 G1 SCS Special Graphics ^[ ) 2 85G1SCSA G1 SCS UK National ^[ ) A 86G1SCSB G1 SCS US ASCII ^[ ) B 87HPA Horizontal Position Absolute ^[ [ G n 88HPA Horizontal Position Absolute ^[ [ ` n 89HTS Horizontal Tab Set ^[ H 90ICH Insert character ^[ [ @ n 91IL Insert line ^[ [ L n 92IND Index ^[ D 93NEL Next line ^[ E 94OSC Operating System Command ^[ ] 95RI Reverse index ^[ M 96RIS Reset to Initial State ^[ c 97RM Reset Mode ^[ [ l r 98SD Pan Up ^[ [ T n 99SGR Set Graphic Rendition ^[ [ m v 100SM Set Mode ^[ [ h r 101ST String Terminator ^[ \\ 102SU Pan Down ^[ [ S n 103TBC Tab Clear ^[ [ g r 104VPA Vertical Position Absolute ^[ [ d n 105 106# Cons25 compatibility sequences 107C25BLPD Cons25 set bell pitch duration ^[ [ = B r r 108C25BORD Cons25 set border ^[ [ = A r 109C25DBG Cons25 set default background ^[ [ = G r 110C25DFG Cons25 set default foreground ^[ [ = F r 111C25GCS Cons25 set global cursor shape ^[ [ = C v 112C25LCT Cons25 set local cursor type ^[ [ = S r 113C25MODE Cons25 set terminal mode ^[ [ = T r 114C25SGR Cons25 set graphic rendition ^[ [ x r r 115C25VTSW Cons25 switch virtual terminal ^[ [ z r 116 117# VT52 compatibility 118#DECID VT52 DECID ^[ Z 119 120# ECMA-48 121REP Repeat last graphic char ^[ [ b n 122