[comp.sys.cbm] New Termcaps for Micro VT100-128

bmhochberg@watmath.UUCP (04/20/87)

DIE LINE EATER!!!


	I have been having a problem with 'vi', 'rn', 'clear' and other
programmes that clear the screen and send text immediately after the clear
screen sequence.  What happens is that the characters start indented
somewhat into the line.  In addition, the end-of-line handling (printing a
character in column 80) screws up.  With thanks to Eric Lee Green (elg@usl),
I have come up with two new termcap definitions that should solve all your
problems when using Microtechnic Solutions' VT-100 emulator.

	Give the following termcap definitions a try.  "vt100-c" should
give you a satisfactory emulation of the vt100 behaviour with the
Microtechnic programme otherwise unchanged.

	If you wish to have single character insert and delete capabilities,
use the "cbm100" definition.  This will perform actual inserts and deletes
instead of re-writing the remainder of the line.  IMPORTANT NOTE:  If you
want to use the "cbm100" definition, you must re-map a couple of characters
on the Micro VT100 emulator.  To do this, run the programme and enter the
following character sequence:

		ALT-*  r  CTRL-B  DEL
		       r  CTRL-A  SHFT-INST
		RUN/STOP
		y

This re-maps incoming characters to delete and shift characters, so as to
not get confused with XON/XOFF characters.  Note that this change will be
reflected in the translation table that will be re-saved on your disk.

	In addition, you may want to remap another character.  As things
stand right now, you are unable to produce a CTRL-T as is required for the
twiddle command in emacs.  The reason behind this is that the 128 decodes
the DEL key and CTRL-T as the same key and both get changed to the ASCII
BS (chr$ (8)).  To get around this, you can redefine the COMMODORE-T to
send the normal CTRL-T.  To do this, just enter the following character
sequence:

		ALT-*  t  C=-T  CTRL-T
		RUN/STOP
		y

Once this is done, whenever you want to produce a CTRL-T, just type in a
C=-T (commodore-t) instead.

	Let me know how they work out.  I've been using them for a little
while now with no problems.  I think I've managed to iron out all the bugs
in them.


-------------------------------------------------------------------------------
Bryan M. Hochberg                    UUCP:  {abunchasystems}!watmath!bmhochberg
U. of Waterloo, Ont.                 MAIL:  P.O. Box 460 E4-201
                                            Waterloo, Ontario
<NOTE:  System name was 'watnot',           N2J 4B6
 now renamed to 'watmath'.       >   BELL:  (519) 884-7527
-------------------------------------------------------------------------------
"Don't let your schooling interfere with your education." - Mark Twain


=========================== CUT BELOW THIS LINE ===============================

CB|cbm100|vt100 emulator, C-128:\
	:am:cr=^M:do=^J:nl=^J:bl=^G:co#80:li#24:cl=100\E[1;1H\E[2J:al=\E[L:\
	:le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:dc=2\E[C^B:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:dl=\E[M:\
	:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:is=\E[1;24r\E[24;1H:\
	:rf=/usr/lib/tabset/vt100:ic=^A \E[D:\
	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
	:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
	:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sr=5\EM:vt#3:xn:\
	:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:tc=vt100:
CW|vt100-c|vt100 emulator w/o insert & delete, C128:\
	:am:do=\E[B:co#80:li#24:cl=100\E[1;1H\E[2J:\
	:le=\E[D:xo:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:DO=\E[%dB:\
	:ce=3\E[K:cd=50\E[J:\
	:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
	:ct=\E[3g:st=\EH:\
	:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:is=\E[1;24r\E[24;1H:\
	:rf=/usr/lib/tabset/vt100:\
	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
	:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:\
	:ho=\E[H:\
	:k0=\EOP:k1=\EOQ:k2=\EOR:k3=\EOS:\
	:l0=PF1:l1=PF2:l2=PF3:l3=PF4:\
	:pt:it#8:\
	:xq:sr=5\EM:xf:sf=\ED:vt#3:\
	:sc=\E7:rc=\E8:\
	:cs=\E[%i%d;%dr: