[net.micro.trs-80] I need a termcap for the 4p

sean@oddjob.UChicago.UUCP (Sean Casey) (07/17/84)

	Does anyone in net.land have a termcap for the trs80 model 4p?
	And if so, can it impliment the screen editors vi or emacs?
	The communication program I am using is COMM from trsdos 6.1.
	Thanks in advance.

 	Sean Casey		|| University of Chicago
 	...!ihnp4!oddjob!sean	|| Dept of Astronomy and Astrophysics

goldberg@uiucdcs.UUCP (07/18/84)

#R:oddjob:-33200:uiucdcs:43300001:000:801
uiucdcs!goldberg    Jul 18 03:36:00 1984

If COMM is the same protocol as VIDTEX, this one might work with some
editing to remove Tandy 2000 keyboard specifics...

# Termcap for Tandy 2000 running VIDTEX software under MS-DOS
# Steve Alexander -- 23-Apr-84
# Still not sure about the arrow keys.....
# Improvements welcome...
T2|T2000|Tandy 2000 running Videotex:\
	:am:bc=\ED:li#25:co#80:\
	:cr=^M:do=\EB:nl=^J:bl=^G:\
	:ku=\051:kd=^_:kl=^]:kr=^\:\
	:up=\EA:nd=\EC:ho=\EH:ce=\EK:\
	:cd=\EJ:cl=\EH\EJ:\
	:xt:cm=\EY%+ %+ :

I haven't seen COMM, but the Shack VIDTEX protocol is the same across
all computers.  If this doesn't work, you might try finding out what
terminals the Shack's DT-1 emulates and trying their termcaps.  Hope
this helps...

					Phil Goldberg
				   ihnp4!uiucdcs!goldberg
					goldberg@uiuc
				     goldberg.uiuc@csnet

uhclem@trsvax.UUCP (07/19/84)

#R:oddjob:-33200:trsvax:70700013:000:1934
trsvax!uhclem    Jul 19 13:47:00 1984

<cough>

The COMM program on TRSDOS 6 (Model 4/4P) does not know any of the vidtex
codes and the functions it has are the same as the os.  But the following
termcap seems to work:

	t4|model4|Tandy TRS-80 Model 4/4P:\
		:am:co#80:li#24:\
		:cr=^]:bc=^X:ho=^\^P^Q:nl=^Z:\
		:cl=^\^_:cd=^_:ce=^^:\
		:up=^[:do=^Z:nd=^Y:\
		:so=^P:se=^Q:xt:

This entry makes vi and the shell work pretty well.  Model 4/4P os does
not have a scroll down function so vi will redraw the screen when you
go up.  You may also notice all of the reverse video text jitters briefly
when the cursor goes to home.  This is because the os turns the reverse
video character set off when it does a home and replaces it with the
game character set.  The home sequence above will home and then cause the
os to turn the reverse set back on.  At low baud rates or heavily loaded
systems this may be a bit annoying, but its the only way if you want to
use COMM.

If you want the bell to work, you must have TRSDOS 6.2.  Before entering
COMM, type these commands:

		SET *XX CLICK (CHAR=7)
		FILTER *DO *XX

This will cause the beeper to sound whenever a ASCII 7 is sent to the video.
If you have an older version of TRSDOS 6, then you will have to write a
filter to do this job.  These commands can be put in a JCL file along with
the setting of the baud rates and such.

You may also notice that the "login:" message comes out two lines lower
with this setup.  This is because the Model 4 takes a CR to mean CR/LF and
takes a LF to mean CR/LF, which produces double spacing.  You can
cure this by starting COMM with this command:

		COMM *CL (XLATER=X'0D1D')

This translates a received CR into a code that just positions to column 0.
(The contents of the line are not erased as the documentation implies.)
The termcap has the same translation in it, so when it starts being used
the XLATER is not needed.

						Frank Durda IV

Thank you, "Uh, Clem".
@ <trsvax|uhclem>