[net.wanted] termcap wanted, trs80 model 2

polite@charm.UUCP (Craig Wormack) (01/17/85)

Does anybody have a termcap for a trs80 model 2 computer?

res@ihuxn.UUCP (Rich Strebendt) (01/19/85)

I tried to send this response by mail, but my machine refused to send
the mail, so here is a broadcast response:


I found that it was not possible to do all of the termcap functions by
simply sending characters to the video controller in the Model II.  I
ended up writing a terminal emulator which runs under TRSDOS and looks
to UNIX like an HP2621.  It implements the entire termcap subset of the
Hewlett Packard 2621 escape sequences so that it can be used for vi,
vnews, rogue, etc.  I have had no difficulty working with it into
machines running SVR2 using terminfo.  It also has the ability to copy
a file of any length to local floppy disk and/or the printer.  A
configuration file is used to both override the default communications
setup, and to initialize up to 26 macro keys.

Let me know if you would be interested in a copy of the object of this
program.

In any event, since mail sometimes disappears into black holes along
the way on the net, please let me know that you received this missive.
If I do not receive confirmation I will attempt to re-send this
message.

					Rich Strebendt
					ihuxn!res

andrew@orca.UUCP (Andrew Klossner) (01/21/85)

As usual, the problem with asking for a termcap for a computer (as
opposed to a terminal) is that you need to specify what terminal
emulator you're running.

Here's a termcap that works when the TRS80 model II (or model 12 or 16)
is running CP/M from Pickles & Trout, in my opinion the best CP/M for
the II.  For a terminal emulator, all you need is a program that reads
characters from the serial port and sends them to the console, and
reads characters from the keyboard and sends them to the serial port.
It's a twenty line hack in assembler, since P&T CP/M includes
additional BIOS calls to test the status of the serial port and to do
blocking and unblocking reads and writes.

tr|trs80|TRS-80 model II running Pickles&Trout CP/M:\
	:al=1*^D:am:bs:bw:cd=^B:ce=^A:cl=^L:cm=\EY%+ %+ :\
	:co#80:dl=1*^K:do=\037:ho=^F:is=^V:\
	:kb=^H:kd=\037:kl=\034:kr=\035:ku=\036:li#24:\
	:nd=\035:pt:se=^O:sg#0:so=^N:up=\036:

I've been using this for four years over a 1200 baud modem.  It works
great with Gosling/Unipress emacs, vi, rogue, and hack.  The only
problem I encounter is that, when doing half-screen scrolls in vnews,
there's not enough padding or vnews is ignoring the pad requirements.
At speeds higher than 1200 baud, you would need to either increase the
padding or implement some form of flow control.

The above-mentioned twenty line terminal emulator program is available
from me on request.

  -- Andrew Klossner   (decvax!tektronix!orca!andrew)       [UUCP]
                       (orca!andrew.tektronix@csnet-relay)  [ARPA]

gordon@trsvax.UUCP (01/21/85)

> Does anybody have a termcap for a trs80 model 2 computer?

I just say it's a vt100, and it works fine.  How about saying WHAT
terminal emulator you are running?  I doubt you have the same
one as I do, and there are lots of terminal emulator programs out
there, running under various operating systems:  Modem7, YAM,
TRSDOS TERMINAL, some emulator for adm3a, various vt100 emulators,
VIDTEX, etc.  Some of these have different terminal types depending
on what options you set.


					Gordon Burditt
					ihnp4!sys1!sneaky!gordon
					convex!ctvax!trsvax!sneaky!gordon