head	1.5;
access;
symbols
	RELENG_9_1_0_RELEASE:1.4.2.1.4.2
	RELENG_9_1:1.4.2.1.0.4
	RELENG_9_1_BP:1.4.2.1
	RELENG_9_0_0_RELEASE:1.4.2.1.2.1
	RELENG_9_0:1.4.2.1.0.2
	RELENG_9_0_BP:1.4.2.1
	RELENG_9:1.4.0.2
	RELENG_9_BP:1.4;
locks; strict;
comment	@# @;


1.5
date	2012.11.17.01.53.32;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2010.11.05.00.56.21;	author ed;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2009.10.08.10.26.49;	author ed;	state Exp;
branches;
next	1.2;

1.2
date	2009.09.25.13.51.01;	author ed;	state Exp;
branches;
next	1.1;

1.1
date	2009.09.03.09.33.57;	author ed;	state Exp;
branches;
next	;

1.4.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.4.2.1.2.1
	1.4.2.1.4.1;
next	1.4.2.2;

1.4.2.2
date	2012.11.17.11.37.26;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.4.2.1.2.2;

1.4.2.1.2.2
date	2012.11.17.08.37.23;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.4.2.1.4.2;

1.4.2.1.4.2
date	2012.11.17.08.48.14;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Switching exporter and resync
@
text
@#-
# Copyright (c) 2008-2009 Ed Schouten <ed@@FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: head/sys/teken/sequences 214817 2010-11-05 00:56:21Z ed $

# File format is as follows:
#	Abbr		Abbreviation of sequence name
#	Name		Sequence name (will be converted to C function name)
#	Sequence	Bytes that form the sequence
#	Arguments	Standard value of arguments passed to this sequence
#			- `n' non-zero number (0 gets converted to 1)
#			- `r' regular numeric argument
#			- `v' means a variable number of arguments

# Abbr	Name					Sequence	Arguments
CBT	Cursor Backward Tabulation		^[ [ Z		n
CHT	Cursor Forward Tabulation		^[ [ I		n
CNL	Cursor Next Line			^[ [ E		n
CPL	Cursor Previous Line			^[ [ F		n
CPR	Cursor Position Report			^[ [ n		r
CUB	Cursor Backward				^[ [ D		n
CUD	Cursor Down				^[ [ B		n
CUD	Cursor Down				^[ [ e		n
CUF	Cursor Forward				^[ [ C		n
CUF	Cursor Forward				^[ [ a		n
CUP	Cursor Position				^[ [ H		n n
CUP	Cursor Position				^[ [ f		n n
CUU	Cursor Up				^[ [ A		n
DA1	Primary Device Attributes		^[ [ c		r
DA2	Secondary Device Attributes		^[ [ > c	r
DC	Delete character			^[ [ P		n
DCS	Device Control String			^[ P
DECALN	Alignment test				^[ # 8
DECDHL	Double Height Double Width Line Top	^[ # 3
DECDHL	Double Height Double Width Line Bottom	^[ # 4
DECDWL	Single Height Double Width Line		^[ # 6
DECKPAM	Keypad application mode			^[ =
DECKPNM	Keypad numeric mode			^[ >
DECRC	Restore cursor				^[ 8
DECRC	Restore cursor				^[ [ u
DECRM	Reset DEC mode				^[ [ ? l	r
DECSC	Save cursor				^[ 7
DECSC	Save cursor				^[ [ s
DECSM	Set DEC mode				^[ [ ? h	r
DECSTBM	Set top and bottom margins		^[ [ r		r r
DECSWL	Single Height Single Width Line		^[ # 5
DL	Delete line				^[ [ M		n
DSR	Device Status Report			^[ [ ? n	r
ECH	Erase character				^[ [ X		n
ED	Erase display				^[ [ J		r
EL	Erase line				^[ [ K		r
G0SCS0	G0 SCS Special Graphics			^[ ( 0
G0SCS1	G0 SCS US ASCII				^[ ( 1
G0SCS2	G0 SCS Special Graphics			^[ ( 2
G0SCSA	G0 SCS UK National			^[ ( A
G0SCSB	G0 SCS US ASCII				^[ ( B
G1SCS0	G1 SCS Special Graphics			^[ ) 0
G1SCS1	G1 SCS US ASCII				^[ ) 1
G1SCS2	G1 SCS Special Graphics			^[ ) 2
G1SCSA	G1 SCS UK National			^[ ) A
G1SCSB	G1 SCS US ASCII				^[ ) B
HPA	Horizontal Position Absolute		^[ [ G		n
HPA	Horizontal Position Absolute		^[ [ `		n
HTS	Horizontal Tab Set			^[ H
ICH	Insert character			^[ [ @@		n
IL	Insert line				^[ [ L		n
IND	Index					^[ D
NEL	Next line				^[ E
OSC	Operating System Command		^[ ]
RI	Reverse index				^[ M
RIS	Reset to Initial State			^[ c
RM	Reset Mode				^[ [ l		r
SD	Pan Up					^[ [ T		n
SGR	Set Graphic Rendition			^[ [ m		v
SM	Set Mode				^[ [ h		r
ST	String Terminator			^[ \\
SU	Pan Down				^[ [ S		n
TBC	Tab Clear				^[ [ g		r
VPA	Vertical Position Absolute		^[ [ d		n

# Cons25 compatibility sequences
C25ADBG	Cons25 set adapter background		^[ [ = G	r
C25ADFG	Cons25 set adapter foreground		^[ [ = F	r
C25BLPD	Cons25 set bell pitch duration		^[ [ = B	r r
C25CURS	Cons25 set cursor type			^[ [ = S	r
C25MODE	Cons25 set terminal mode		^[ [ = T	r
C25SGR	Cons25 set graphic rendition		^[ [ x		r r
C25VTSW	Cons25 switch virtual terminal		^[ [ z		r

# VT52 compatibility
#DECID	VT52 DECID				^[ Z
@


1.4
log
@SVN rev 214817 on 2010-11-05 00:56:21Z by ed

Partially implement the mysterious cons25 \e[x escape sequence.

It seems the terminfo library on some systems (OS X, Linux) may emit the
sequence \e[x to reset to default attributes. Apart from using the
zero-command, this escape sequence allows many more operations, such as
setting ANSI colors. I don't see this used anywhere, so this should be
sufficient for now.

This deficiency was spotted by the Debian GNU/kFreeBSD. They have their
own patch, which is slightly flawed in my opinion. I don't know why they
never reported this issue to us.

MFC after:	1 week
@
text
@d26 1
a26 1
# $FreeBSD$
@


1.4.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.4.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d26 1
a26 1
# $FreeBSD: stable/9/sys/teken/sequences 214817 2010-11-05 00:56:21Z ed $
@


1.4.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.4.2
log
@Switch importer
@
text
@d26 1
a26 1
# $FreeBSD: releng/9.1/sys/teken/sequences 214817 2010-11-05 00:56:21Z ed $
@


1.4.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.2.2
log
@Switch importer
@
text
@d26 1
a26 1
# $FreeBSD: releng/9.0/sys/teken/sequences 214817 2010-11-05 00:56:21Z ed $
@


1.3
log
@SVN rev 197853 on 2009-10-08 10:26:49Z by ed

Discard Device Control Strings and Operating System Commands.

These strings often contain things like:

- Window titles.
- Extended key map functionality.
- Color palette switching.

We could look at these features in the future (if people consider them
to be important enough), but we'd better discard them now. This fixes
some artifacts people reported when using TERM=xterm.

Reported by:	des@@, Paul B. Mahol
@
text
@d109 1
@


1.2
log
@SVN rev 197481 on 2009-09-25 13:51:01Z by ed

Add a new escape sequence to switch between cons25 and xterm.

Just run this to switch to xterm:

	printf '\e[=T'

If you get bored and want to switch back to cons25, run this:

	printf '\e[=1T'

I can now send an email to the lists, asking whether people are
interested in trying the xterm emulator.
@
text
@d91 1
@


1.1
log
@SVN rev 196775 on 2009-09-03 09:33:57Z by ed

Move libteken out of the syscons directory.

I initially committed libteken to sys/dev/syscons/teken, but now that
I'm working on a console driver myself, I noticed this was not a good
decision. Move it to sys/teken to make it easier for other drivers to
use a terminal emulator.

Also list teken.c in sys/conf/files, instead of listing it in all the
files.arch files separately.
@
text
@d107 1
@

