[net.micro.cbm] C64 termcap

msitd22@ms3.UUCP (Jim Chappell) (03/11/86)

Has anyone got a (UNIX) termcap entry for the Commodore 64
they'd be willing to share?

Jim (seismo!vrdxhq!ms3!msitd22) Chappell

drseaman@thunder.UUCP (Dave Seaman) (03/15/86)

In article <352@ms3.UUCP> msitd22@ms3.UUCP (Jim Chappell) writes:
>Has anyone got a (UNIX) termcap entry for the Commodore 64
>they'd be willing to share?
>

	There is no one entry for a C64. It is entirely dependent upon the 
terminal program you are running.
	I have several terminal programs that emulate terminals that exist in
termcap. The only modification you have to make is that you have a 25X40 screen.
	Here is the entry you should place in you home directory if you have a
VT52 emulator (VIDTEX from Compuserve).

dw|vidtex-vt52|dec vt52:\
	:cr=^M:do=^J:nl=^J:bl=^G:ho=\EH:\
	:le=^H:cd=\EJ:ce=\EK:cl=\Ej:cm=\EY%+ %+ :co#40:li#25:nd=\EC:\
	:ta=^I:pt:up=\EA:ku=\EA:kd=\EB:kr=\EC:kl=\ED:kb=^H:

	If you login from real terminals at real speeds here is a chunk out of 
.login that will switch for you.


set speed = `stty speed`
stty dec
stty -lcase
stty -nohang
stty tostop
if $speed == 300 then
echo "Switching to VT52"
	setenv TERMCAP "/u/drseaman/.daveterm"
	set term = vidtex-vt52
	setenv term vidtex-vt52
	stty erase 
	tset vidtex-vt52
else
	if $term != vt100 then
		echo "Switching to VT100"
		set term = vt100
		tset vt100
	endif
endif

-- 
				Dave Seaman
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Up in the Great White North...
..{watmath|mmm}!thunder!drseaman
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-