
This document presents notes and information on term sequences for
different term types

=======================================================================

TERM TYPE: Ansi

Ansi and/or VT100 term attribute sequences
It is a bit difficult to get docs, so here's items as I find them.


IMPLEMENTED:


Sequence	Action				Source			Comments
-------------	------------------------------	---------------------	------------>
^G		Bell				ansi
^H		Backspace			ansi
^I		tab				ansi
^J		linefeed			ansi
^M		carriage return			ansi
^N		select secondary char set	ansi	
^O		select primary char set		ansi
^R		Turn off aux print		custom			I'm not sure about this
^T		Turn on aux print		custom			ditto
\E1		Set tab at cursor pos		defacto?		Can't find this in standards anywhere, but a lot of
									software seems to support it.
\E2		Clear tab stop at cursor pos	defacto?		ditto
\EQ#S#S		Program function keys		PCTERM?			'S' is any arbitrary separator char. The same char delimits
									the program string on both sides.
\E[#@		insert character(s)		ansi
\E[#A		up # rows			ansi
\E[#B		down # rows			ansi
\E[#C		right # rows			ansi
\E[=#;#C	cursor visibility		ansi			This seems to have something to do with starting and
									ending scan lines, but I haven't been able to find 
									much in the way of docs.
\E[#D		left # rows			ansi
\E[#;#H		move cursor to position		ansi
\E[#J		erase in display.		ansi			0 erase to EOS
									1 erase BOS to cursor
									2 erase entire screen
\E[#K		erase in line.			ansi			0 erase to EOL
									1 erase BOL to cursor
									2 erase entire line
\E[#L		insert line(s)			ansi
\E[#M		Delete line(s)			ansi
\E[0m		normal				ansi
\E[1m		bold				ansi
\E[2m		dim				ansi
\E[3m		italics				PCTERM
\E[4m		underline			ansi
\E[5m		blink				ansi
\E[6m		rapid blink			PCTERM
\E[7m		reverse				ansi
\E[8m		invisible			ansi
\E[10m		primary font - multinational	ansi
\E[11m		first alternate font - monitor	ansi			implements monitor mode
\E[12m		second alternate font - pcterm	ansi			PC TERM char set
\E[13m		double-height top half		custom
\E[14m		double-height bottom half	custom
\E[15m		double-width			custom
\E[3#m		set fg colour (0-7)		ansi
\E[3#m		set fg colour (8-15)		custom			allows the high-intensity colors as well
\E[4#m		set bg colour (0-7)		ansi
\E[4#m		set bg colour (8-15)		custom			allows the high-intensity colors as well
									0 black
									1 red
									2 green
									3 yellow
									4 blue
									5 magenta
									6 cyan
									7 white

\E[#P		Delete char(s)			ansi
\E[#S		Scroll down. Don't move cursor	ansi
\E[s		save current cursor position	ansi
\E[u		restore cursor position		ansi
\E[=?E		set or clear (0-1) blink/bold	ansi? PCTERM?		ignore. Both are always available in TelStar
		background
\E[=?F		set foreground colour (0-15)	ansi?
\E[=?G		set background colour (0-15)	ansi?
\E[?7h		automargins on			ansi?
\E[?7l		automargins off			ansi?




NOT IMPLEMENTED:

(some of these are probably PCTERM rather than ansi)

Sequence	Action/Comments
-------------	------------------------------------------------------------->
\E[2h		lock keyboard
\E[=#h		various pc-based display modes.
\E[2i		send screen contents to printer.
\E[2l		unlock keyboard
\E[6n		returns current cursor position
\E[#Z		Back Tab, whatever that is. Previous tab position ?
\E[#G		Horizontal absolute. Does that mean to a particular x position?
\E[#I		tab. To position, or # spaces, or # of tab stops?
\E[#E		next line. Down a line?
\E[#F		preceding line. Up a line?
\E[#{;#}W	tab control. As in set tabs?
\E[#Y		vertical tab. How do you set vertical tabs?
\E[#c		get device attributes. Reponds with \E[?l;#c where # encodes the options.
\E[#o		Define area qualification. Huh?
\EP		device control string. Huh?
\E\\		disable manual input. As in disable keyboard?
\E[#{;#}n	device status report. Probably various things you can ask for:
		\E[6n asks for cursor position. Terminal responds with \E[#;#R, row and column.
\E[#{;#}O	erase in area. Uh, define a box?
\E[#{;#}X	erase character. How so?
\E[#{;#}N	erase in field. Huh?
\Eb		enable manual input. As in enable keyboard?
\EW		end of protected area. Uh?
\EG		end of selected area. Uh?
\E[#;#_D	Font selection. The underscore is actually a space.
\E[#;#_B	Graphic size modify. The underscore is actually a space.
\E[#_C		Graphic size selection. _=' '
\E[#`		Horizontal position absolute
\E[#a		Horizontal position relative. Does it take negatives?
\EI		Horizontal tab with justification. Huh?
\EH		Horizontal tab set
\E[#;#f		cursor position. Why is this different than H?
\ED		index. Eh?
\Ea		interrupt. Uh?
\E[#;;#_F	justify. What? Possibly the '' is text or something. Oy.
\E[#{;#}i	Media copy. Say what?
\EU		message waiting. UH?
\EE		next line. What about it?
\E[#U		next page.
\E]		o/s command. This is a delimiter string, it says.
\EK		partial line down. Uh?
\EL		partial line up. Uh?
\E^		Privacy message. Uh?
\E[#V		preceding page.
\EQ		private use 1
\ER		private use 2
\E[#{;#}_H	Typographic quadding. I give up.
\E[#b		repeat char or control
\EM		reverse index. What index?
\Ec		reset to initial state
\E[#{;#}l		reset mode(s)
\E[#T		scroll down. Move the page as opposed to the cursor? Or what?
\E[#{;#}Q	select edit extent mode. UH?
\E[#{;#}m	Select graphic rendition
\E[#_@		scroll left
\E[#{;#}h	select mode
\EV		start of protected area
\E[#;#_G	spacing increment
\E[#_A		scroll right
\EN		G2 char set
\EO		G3 char set
\EF		start of selected area
\E\\		string terminator
\ES		set transmit state
\E[#{;#}g	tab clear
\E[#_E		thin space specification
\E[#d		vertical position absolute
\E[#e		vertical position relative
\EJ		vertical tab set




=======================================================================

TERM TYPE: vt100

See ansi. For version 1.0, ansi and vt100 are identical in behavior.
This may change as more information becomes available.

