[sci.electronics] Radio Shack WP-2 terminal emulation > SOLVED

touch@dsl.cis.upenn.edu (Joe Touch) (10/19/90)

The following information is relevant to the terminal emulation 
mode of the Radio Shack WP-2:

keycodes interpreted:
	ESC H		homes the cursor (to 0,0)
	ESC A		cursor up
	ESC B		cursor down
	ESC C		cursor right
	ESC D		cursor left (same as ^H)
	ESC Y x y	cursor move to (x,y) 
			i.e. move to 6,42 is ESC Y ^F *
	ESC J		clear to end of screen *WHEN IN COLUMN 0 ONLY*
			(UNKNOWN function when cursor isn't in col 0)
	ESC K		clear to end of line
	ESC ^^ (?)	UNKNOWN FUNCTION (i.e. ^^ = code 30, decimal)
	^H		backspace (nondestructive, same as cursor left)
	^J		newline
	^M		carriage return (move cursor to column 0)
	^T		destructive tab

keycodes sent
	^H		backspace
	^T		tab
	^M		return
	^_		arrow down
	^^		arrow up
	^]		arrow left
	^\		arrow right

To use the WP-2 with a UN*X system, make sure XON/XOFF flow control
is set ON on the WP-2, and use the following termcap entry:

# Joe Touch 10/14/90 Entry for Radio Shack WP-2
# cursor motion commands derived by experiments
#
jo|wp2|wp-2|Radio Shack WP-2:co#80:li#8:am:bs:\
	:nd=\EC:ho=\EH:do=\EB:up=\EA:\
	:cm=\EY%.%.:cd=\EJ:ce=\EK:cl=\EH\EJ:\
	:kd=^_:kl=^]:kr=^\:ku=^^:\
	:xo:pt:xt:

*** If you found this useful, please send me some e-mail and
	let me know.  Also, if you can figure out what the
	unknown functions are.  

	Joe Touch
	PhD candidate
	Dept of Computer and Information Science
	University of Pennsylvania

	touch@cis.upenn.edu