[comp.terminals] VT command codes

2fluluck@kuhub.cc.ukans.edu (09/05/90)

For some time I have been looking for some of the less common codes for some VT
functions.  Specifically, I am trying to insert and delete lines from the
screen without having to redraw the entire screen.  Anyway, I have been unable
to find these codes in any books in the library, in my Dos reference manuals
(although I did find the generic ANSI codes), etc.  So, does anyone out there
know where I could obtain a complete description of the VT command code set, or
at least up to the vt102 terminal.  Preferably I would like to know of places
where I could FTP it (or some kind soul could mail it to me).  

Thanks in advance.

				Steve Penrod          (no, this isn't a .sig)
				University of Kansas

sherwin@royalt.enet.dec.com (Jim Sherwin) (09/07/90)

In article <25415.26e45d17@kuhub.cc.ukans.edu>, 2fluluck@kuhub.cc.ukans.edu writes...

>For some time I have been looking for some of the less common codes for some VT
>functions.  Specifically, I am trying to insert and delete lines from the
>screen without having to redraw the entire screen.  Anyway, I have been unable
>to find these codes in any books in the library, in my Dos reference manuals
>(although I did find the generic ANSI codes), etc.  So, does anyone out there
>know where I could obtain a complete description of the VT command code set, or
>at least up to the vt102 terminal.  Preferably I would like to know of places
>where I could FTP it (or some kind soul could mail it to me).  
> 
	Steve,

	I believe the codes you are looking for are the following:

		from VT102 Video Terminal Users Guide EK-VT102-UG
	
		NOTE:	<ESC>[ and <CSI> are synonomous
			<ESC> =	decimal 27
			<CSI> = decimal 155

	Insert Line	<ESC>[nL	Where n = # of lines to be inserted

		Inserts n lines at line with cursor.  Lines displayed below
		cursor are moved down.  Lines moved past the bottom margin
		are lost.

	Delete Line	<ESC>[nM	Where n = # of lines to be deleted

		Deletes n lines starting at line with cursor.  As lines are
		deleted, lines displayed below the cursor move up.  Lines
		added to the bottom of the screen have spaces with same
		character attributes as last line moved up.

	Additiionally, I think you could use the Insertion and Overstrike
	modes.

	Insert Mode	<ESC>[4h

		At the cursor's position, new display characters move old
		display characters to the right.  Characters moved past the
		right margin are lost.

	Overstrike Mode <ESC>[4l (lower case L)

		At cursor's position, new display characters replace old
		display characters.  The old character is erased.

	I hope this helps.  


	Regards,

	Jim
 <>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>
 <> "When things are going well,   \    Jim Sherwin a.k.a.                  <>
 <>  someone will inevitably        \   sherwin@royalt.enet.dec.com         <>
 <>  experiment detrimentally."      \  !decwrl!royalt.enet.dec.com!sherwin <>
 <>               Boyle's Second Law  \ sherwin%royalt.enet@decwrl.dec.com  <>
 <>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>