infocmp
	-C	termcap Compatibility
	-1	1 entry per line

ANSI:
http://en.wikipedia.org/wiki/ANSI_escape_code
http://www.ecma-international.org/publications/standards/Ecma-048.htm

XTERM:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

DtTerm:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN5/0200____.HTM
http://www.s-gms.ms.edus.si/cgi-bin/man-cgi?dtterm+5

S: appears in "standard"
T: appears in termcap/infocmp -C
N: Not supported
-: Not supported
?: Unknown
Y1: In wiki ansi but not part of infocmp ansi

sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------
\CR		CR (Carriage Return)	cr		-	?	S	ST	ST	dumb
\LF		LF (Line Feed) ^J	sf,do		-	?	S	ST	ST	dumb
\BS		BS (Back Space) ^H	kb,le		-	?	S	ST	ST	dumb
\HT		HT (tab) ^I		-		-	?	S	ST	ST	dumb
\BEL		BEL (Bell)		-		-	-	S	ST	ST	dumb
\SI		SI (Shift In) ^O	ae		-	-	S-	ST	S-	protoansi
\SO		SO (Shift Out) ^N	as		-	-	S-	ST	S-	protoansi

\ESC(B		SCS (ascii -> G0)	ae		-	-	--	S-	ST	N
\ESC(0		SCS (line -> G0)	as		-	-	--	S-	ST	N

\ESC7		DECSC (Save Cursor)	sc		-		--	ST	ST	ansi
\ESC8		DECRC (Restore Cursor)	rc		-		--	ST	ST	ansi
\ESCD		IND (Index)		-		?	?	--	S-	S-	dtterm
\ESCH		HTS (Horiz Tab Set)	st		-	-	ST	ST	ST	N
\ESCM		RI (Reverse Index/LF)	sr		?	?	S	ST	ST	protoansi

\ESCN%c		SS3 (Single Shift select G2)		-	-	S-	S-	S-	N
\ESCO%c		SS3 (Single Shift select G3)				S-	S-	ST	N
					K2 %c=E		-	-	??	--	ST	N
					kd %c=B		-	-	??	--	ST	N
					kh %c=H		-	-	??	--	ST	N
					kl %c=D		-	-	??	--	ST	N
					kr %c=C		-	-	??	--	ST	N
					ku %c=A		-	-	??	--	ST	N

\ESCc		RIS (Reset to Initial State)
					-		-	-	S-	S-	S-	protoansi	full reset
\ESC>		DECPNM (normal keypad)	is		-	-	?-	ST	ST	N
\ESC=		DECPAM (application keypad)
					ks		-	-	?-	S-	ST	N

\ESC F		S7C1T (Select 7bit C1 Ctl Chars)
					is		-	-	?-	ST	S-	N
\ESC G		S8C1T (Select 8bit C1 Ctl Chars)
					is		-	-	?-	ST	S-	N
\ESC[s		PSCP (Save Cursor Pos)	-		-	-	--	--	S-	N	ansi.sys see \ESC7
\ESC[u		PRCP (Restore Cursor Pos)-		-	-	--	--	S-	N	ansi.sys see \ESC8
----------------------------------------------------------------------------------------------------------------------------------------
sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------
\ESC[%dA	CUU (CUrsor Up)		up (ku, UP)	01N	Y	ST	ST	ST	protoansi
\ESC[%dB	CUD (CUrsor Down)	do (DO, kd)	01N 	Y	ST	ST	ST	protoansi
\ESC[%dC	CUF (CUrsor Forward)	nd (kr, RI)	01N	-	ST	ST	ST	protoansi
\ESC[%dD	CUB (CUrsor Back)	le (LE)		?		ST	ST	ST	protoansi	op_bc()

\ESC[%dE	CNL (CUrsor Next Line)	-		01N	?	S-	--	S-	N
\ESC[%dF	CPL (CUrsor Prev Line)	-		01N	?	S-	S-	S-	N
\ESC[%dG	CHA (Cursor Horiz Abs.)	-		N		S-	S-	S-	N

\ESC[%d;%dH	CUP (CUrsor Position)	cm (ho, kh)	?		ST	ST	ST	protoansi

\ESC[%dI	CHT <tab forward>	ta		?	?	ST	--	ST	N

\ESC[%dJ	ED (Erase in Display)	cd (cl)		012		ST	ST 	ST	protoansi	op_cl a bit of a mess in Term
\ESC[%dK	EL (Erase in Line)	ce		012 		ST	ST	ST	protoansi

\ESC[%dL	IL (Insert Lines)	al (AL, kI) 	? 		ST	ST	ST	protoansi
\ESC[%dM	DL (Delete Lines)	dl		01N		ST	ST	ST	protoansi
\ESC[%dP	DCH (Delete CHaracters)	dc (DC)		01N		ST	ST 	ST	protoansi

\ESC[%dS	SU (Scroll Up)		SF (nw)		01N	Y	ST	S-	ST	N
\ESC[%dT	SD (Scroll Down)	SR		01N	Y	ST	S-	ST	N
\ESC[%dX	ECH (Erase CHaracters)	ec		?		ST	S-	ST	N
\ESC[%dZ	CBT <tab back>		bt		?	?	ST	--	ST	N
\ESC[%d@	ICH (Insert Character)	ic		01N	-	ST	ST 	ST	protoansi

\ESC[%db	REP (REPeat last graphic char)			-	S?	--	S?	N	exercised by 'alsamixer'
\ESC[%d;%df	HVP (Horiz Vert Pos)	-		?	?	S-	S-	S-	N	same as CUP

\ESC[3g		TBC (TaB Clear)		ct		03	- 	ST	ST 	ST	N

\ESC[4h		SM/IRM (Insert Mode)	im		insert	- 	ST	ST	ST	protoansi	op_set_mode
\ESC[5h		SM (Set Mode)		-		reverse	- 	ST	S-	ST	protoansi	op_reverse(true)?

\ESC[%di	MC (Media Copy)		-		1,4,5,10,11	S-	--	S-	ansi	ACT_PRINT	term debugging

\ESC[4l		RM/IRM (Replace Mode)	ei		?	?? 	ST	ST	ST	?
\ESC[5l		RM (Reset Mode)		-		reverse	- 	S-	--	ST	ansi	op_reverse(false)?

----------------------------------------------------------------------------------------------------------------------------------------
sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------
\ESC[m		SG (Set Graphics)	se (ue)		?	 	Y	Y-	Y	protoansi
\ESC[0m		SG (Set Graphics)	me		all off  	Y	Y-	Y	protoansi
\ESC[1m		SG (Set Graphics)	md		bold	 	Y	Y-	Y	protoansi
\ESC[2m		SG (Set Graphics)	so		faint	 	Y1	?T	?	protoansi
\ESC[3m		SG (Set Graphics)	-		italic	 	Y1	?-	?	N -> ?
\ESC[4m		SG (Set Graphics)	us		underline 	Y	?T	Y	protoansi
\ESC[5m		SG (Set Graphics)	mb		blink S	 	Y	Y-	Y	N
\ESC[6m		SG (Set Graphics)	-		blink F	 	Y1	?-	?	N
\ESC[7m		SG (Set Graphics)	mr (so)		reverse	 	Y	?T	ST	protoansi
\ESC[8m		SG (Set Graphics)	-		hidden	 	Y1	Y-	Y	protoansi
\ESC[9m		SG (Set Graphics)	-		strike	 	Y1	?-	?	N
\ESC[10m	SG (Set Graphics)	-		primary ft	Y1	?-	?	ansi
\ESC[11-19m	SG (Set Graphics)	-		alt ft	 	Y1	?-	?	ansi
\ESC[20m	SG (Set Graphics)	-		fraktur	 	Y1	?-	?	N
\ESC[21-29m	SG (Set Graphics)	ue		<inverse of 1-9>Y1	?T	ST	ansi
\ESC[30-37m	SG (Set Graphics)	-		fg color	Y1	?-	?	ansi
\ESC[38m	SG (Set Graphics)	-		256 fg color	Y1	?-	?	N
\ESC[39m	SG (Set Graphics)	-		dflt fg color	Y1	?-	?	ansi
\ESC[40-47m	SG (Set Graphics)	-		bg color	Y1	?-	?	ansi
\ESC[48m	SG (Set Graphics)	-		256 bg color	Y1	?-	?	N
\ESC[49m	SG (Set Graphics)	-		dflt fg color	Y1	?-	?	ansi

\ESC[5n		DSR (Device Status Report)		56	?	S-	S-	S-	protoansi
\ESC[6n		DSR CPR (Curesor Position Report)	56	?	S-	S-	S-	protoansi

\ESC[%d;%dr	DECSTBM			cs		?	?	-T	ST 	ST	protoansi	ACT_MARGIN

\ESC[t		-			-		?	?	--	?-	?-	ansi	ACT_GLYPH (should be dtterm?)
\ESC[t		-			-		?	?	--	S-	S-	N	(window manipulation dtterm)
----------------------------------------------------------------------------------------------------------------------------------------
sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------
\ESC[?1h	SM/DECCKM (Enable cursor key mode)
					ks		-	-	??	S-	ST	N
\ESC[?5h	SM/DECSCNM (Enable reverse video)
					vb		?	?	?-	ST	ST	N	used for flashing
\ESC[?12h	SM (Start blinking cursor)
					vs		-	-	??	--	ST	N
\ESC[?25h	SM/DECTCEM (Show cursor)
					ve,vs		-	-	??	S-	ST	N
\ESC[?7h	SM/DECAWM (Enable Auto Wrap)
					is		-	-	?-	ST	S-	N
\ESC[?25h	SM/DECTCEM (Enable cursor visible)
					ve,vs				-~	ST	ST	N
\ESC[?1034h	set 8th bit on meta key?
\ESC[?1049h	~DECSC			ti		-	-	?-	--	ST	N
					mm		-	-	?-	--	ST	N


\ESC[?1l	RM/DECCKM (Disable cursor key mode)
					is		-	-	??	ST	ST	N
\ESC[?3l	RM/DECCOLM (disable 132 col mode)
					is		-	-	??	S-	ST	N
\ESC[?4l	RM/DECSCLM (Disable smooth scrolling)
					is		-	-	??	S-	?T	N
\ESC[?5l	RM/DECSCNM (Disable reverse video)
					vb		?	?	??	ST	ST	N	used for flashing
\ESC[?12l	RM (Reset Mode) DECRST	ve, vs				-~	S-	ST	protoansix	DEC private reset
\ESC[?25l	RM/DECTCEM (Disable cursor visible)
					vi				-~	ST	ST	?
\ESC[?45l	disable reverse autowrap
					is		-	-	??	ST	--	N
\ESC[?1034l	don't set 8th bit on meta key?
					mo		-	-	??	--	ST	N
\ESC[?1049l	~DECRC			te		-	-	??	--	ST	N


\ESC[?25r	?			ve/vs				--	S-	S-	protoanisx	DEC private restore
\ESC[?25s	?			ve/vs				--	S-	S-	protoanisx	DEC private save

----------------------------------------------------------------------------------------------------------------------------------------
sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------

\ESC[!p		DECSTR			is		?	?	--	S-	ST	protoanisx	op_soft_reset()

----------------------------------------------------------------------------------------------------------------------------------------
sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------

\ESC]%d;%sBEL								--	S-	S-	protoanisx	set text parameters
							0		--	S-	S-	protoanisx	set window  title + set icon name
							1		--	S-	S-	protoanisx	set icon name
							2		--	S-	S-	protoanisx	set window  title
							3		--	S-	--	protoansix [ -> dtterm ]
\ESC]10;%s;%sBEL					10		--	--	--	protoanisx	"nbterm" hyperlink
														cwd and persist

\ESC]%d;%s\ESC\  							--	--	S-	xterm		set text parameters
							0		--	--	S-	xterm		set window  title + set icon name
							1		--	--	S-	xterm		set icon name
							2		--	--	S-	xterm		set window  title
							3		--	--	S-	N [ -> xterm ]	set X property
\ESC]10;%s;%s\ESC\  					10		--	--	--	xterm		"nbterm" hyperlink

\ESC]l%s\ESC\								--	S-	--	dtterm		set window  title
\ESC]I%s\ESC\								--	S-	--	N		set icon image file
\ESC]L%s\ESC\								--	S-	--	dtterm		set icon name
----------------------------------------------------------------------------------------------------------------------------------------
sequence	mnemonic		termcap op	numbers	margin	ansi	dtterm	xterm	Term
----------------------------------------------------------------------------------------------------------------------------------------
