[comp.sys.m6809] CoCo 3 Termcap/Terminfo

megabyte@chinet.UUCP (Dr. Megabyte) (11/01/87)

Ok, here is THE tested termcap and terminfo entries for the 
CoCo 3 under OS9 Level II in 80 column mode. The catch is
that in order to use them you must make a patch to CC3IO in order
to correct a long standing bug with how CC3IO handles 
2( or more) byte control sequences coming from /t2.

First, here is the patch to CC3IO. It comes from Kevin Darling,
long time OS9 guru and author of "Inside OS9 Level II".

Module CC3IO

Offset	Old	New
-----	---	---
$778	$A7	$12
$779	$C8	$12
$77A	$1F	$12
$79F	$4B	$4E
$9EE	$A7	$12
$9EF	$C8	$12
$9F0	$1F	$12
$A2D	$DB	$C0

Then, of course, re-verify the CRC of the CC3IO module, and make a new
OS9boot file. Anyone who needs help with the above can e-mail me for
more specific directions on how to do this.

Having done this, you may use either of the following termcap or
terminfo, depending on your system with your CoCo 3 and any
OS9 terminal program that lets all control codes through.

First, the CoCo 3 Termcap entry:

# Tandy CoCo 3 with OS9 Level II and cc3io patched to
# make 2 byte screen control codes work.
coco3|os9LII:\
	:am:bs:cl=^L:li#24:co#80:ho=^A:\
	:cd=^K:ce=^D:cm=%r^B%+ %+ :\
	:do=^J:up=^I:nd=^F:so=\037 :se=\037!:\
	:us=\037":ue=\037#:al=\0370:dl=\0371:

And now, the CoCo 3 Terminfo entry:

# Tandy CoCo 3 with OS9 Level II and cc3io patched to
# make 2 byte screen control codes work.
coco3|os9LII,
	am,
	cols#80,	lines#24,
	bel=^G,	cr=\r,	clear=\f,
	el=^D,	ed=^K,	cup=^B%p2%' '%+%c%p1%' '%+%c,
	cud1=\n,	home=^A,	cub1=\b,
	cuf1=^F,	cuu1=\t,	dl1=^9,
	smso=^_\s,	smul=^_",	rmso=^_!,
	rmul=^_#,	il1=^8,	kbs=\b,
	kcud1=\n,	kcub1=\b,	nel=\r\n,
	ind=\n,

Thes have been tested on both Berkley systems and SYS V using
vi, emacs, jove, Informix(tm), rn, and more. All seem to 
work.  Hack and Larn seem to have problems with TABS. 
They seem to have a ^I harcode in them.  Thus when the terminal
driver is put into RAW mode, the ^I gets sent out as ^I and 
instead of sending any spaces, it does an up cursor.

The one limitation to using the CoCo with UNIX is that there is
no DEL or ASCII 127 charactor on the keyboard.  Mostly
you can get around this with a

stty intr ^C

command in your .profile or .login file.  Some programs though
insist on a true DEL char.  I have faith someone will fnd a patch
for cc3io so that maybe ALT Break will send a 127 sinc now it just
send the same as a BREAk key by itself.

Well, thats all for today campers.  Report problems and bugs
to me here at chinet.  I'll see if I can't work them out.

"It is better to have loved and lost than have moved to Kansas" 
-- 
UUCP:	(1) ??????????????!scsnet!sunder		Mark E. Sunderlin
	(2) ihnp4!chinet!megabyte			aka Dr. Megabyte
CIS:	74026,3235					(202) 634-2529
Mail:	IRS  PM:PFR:D:NO  1111 Constitution Ave. NW  Washington,DC 20224