Using a CBM B series computer as a Unix terminal

From: Marko Mäkelä (msmakela_at_cc.hut.fi)
Date: 2002-01-22 15:17:21

The GNU Emacs distribution includes a file etc/termcap.src that contains
terminal description entries for various computers, including one we know:

# Commodore B-128 microcomputer from Doug Tyrol <det@HEL-ACE.ARPA>
# 	I'm trying to write a termcap for a commodore b-128, and I'm
# having a little trouble. I've had to map most of my control characters
# to something that unix will accept (my delete-char is a ctrl-t, etc),
# and create some functions (like cm), but thats life.
# 	The problem is with the arrow keys - right, and up work fine, but
# left deletes the previous character and down I just can't figure out.
# Jove knows what I want, but I don't know what it's sending to me (it
# isn't thats bound to next-line in jove).
# 	Anybody got any ideas? Here's my termcap.
# DAG -- I changed his "^n" entries to "\n"; see if that works.
#
commodore|b-128|Commodore B-128 micro:\
	:am:bw:\
	:co#80:dN#20:li#24:pb#150:\
	:al=10\Ei:bc=^H:ce=10\Eq:cl=10\E\006:\
	:cm=20\E\013%2\054%2\054:cr=^M:dc=10*\177:dl=10*\Ed:\
	:do=^J:ei=:ho=\E^E:ic=5\E\n:im=:kd=^J:kh=\E^E:kl=^B:kr=^F:\
	:ku=^P:nd=^F:nl=^M:ta=5\011:up=^P:

I haven't played around with this yet, but I think that the capabilities
of the CBM B series editor are pretty good, as there are escape sequences
for implementing commands like visual bell (ESC r followed by ESC n) and
for deleting and inserting lines of text.

My questions: Is there a semi-decent terminal program for the CBM B
series, or do I have to write my own in BASIC?  When using OPEN2,2,3 for
RS-232 I/O, is CTS/RTS or XON/XOFF handshaking available?  I guess the
latter is not, as DC1 is mapped to HOME and DC3 to CURSOR DOWN on the
Commodore.  But what about CTS/RTS, do I need machine language?  And how
is DTR/DSR handshaking supposed to work?

	Marko


       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.1.