This file is a thread for discussions from several members of Club 100. 10-15-96 22:16:26 From: M100@DILLERNET.COM To: RICHARD HANSON (Rcvd) Subj: M100 TERMCAPS Here is the "official" M100 termcap, plus a termcap for the M100 or 200 with a DVI attached (and some extra comments added by me): # termcap for the radio shack model 100 computer running its # built-in terminal emulator. The termcap entry was prepared at Microsoft # as was the model 100's standard software. # escape A cursor up # escape B cursor down # escape C cursor right # escape D cursor left # escape E clear screen and home cursor # e H home cursor # e J erase to end of screen # e K erase to end of line # e L insert line # e M delete line # e P turn off cursor # e Q turn on cursor # e T set system line? # e U reset system line? # e V turn off LCD ? # e W turn on LCD ? # e Y row/col cursor motion # e j clear screen don't move cursor # e l erase line don't move cursor # e p begin rev video # e q end rev video # e del change char under cursor to space MZ|m100|trs100|TRS100|radio shack model 100:\ :am:bs:le=^H:li#8:co#40:\ :ku=^^:kd=^_:kl=^]:kr=^\:up=\EA:nd=\EC:ho=\EH:ce=\EK:\ :cd=\EJ:cl=\EE:xt:cm=\EY%+ %+ :\ :so=\Ep:se=\Eq:al=\EL:dl=\EM: MZ|m100v|radio shack model 100 with video:\ :co#80:do=^_:is=\ED:le=^]:li#24:nd:^\:sr=\EI:up=^^:tc=m100: -- Leonard Erickson (aka Shadow) shadow@krypton.rain.com <--preferred leonard@qiclab.scn.rain.com <--last resort Msg#:46369 *INTERNET* 02-17-97 21:31:32 From: HODGES@WEIRDNESS.COM To: RICHARD HANSON (Rcvd) Subj: RE: EMAIL On Sat, 25 Jan 1997, Brent Knowles wrote: > Correct me if I'm wrong. The only way to connect to the Internet, through dial-up access, using the M100 is to use an external modem, right? The 300 baud internal modem is simply too slow. I'm assuming this, because I haven't had any success with my M100 connecting to my internet server. I get to the name and password screen and after that there is just a load of junk. Actually, my huess is that your ISP is automatically sending you into vt100. Again, hopefully the trs100 termcap is supported. In that case, it should be simple enough to log on through vt100 and change your .profile to set the terminal to trs100 instead of vt100. I access my ISP from both vt100 and trs100. I have the following lines in my .profile: # Put your default terminal on the line below: TERM=vt100 /bin/echo "Press RETURN to accept the default terminal type or enter an alternat e" /bin/echo -n "TERM=($TERM) " while : do read term if [ -z "$term" ] then term=$TERM break elif grep -q "${term}[:|]" /etc/termcap then break else echo "Sorry, ${term} is not supported" 1>&2 echo "Common terminal types include but are not limited to: " 1>&2 echo " vt100 at386 ibm3101 tvi925" 1>&2 /bin/echo -n "TERM=($TERM) " fi done TERM=$term echo TERM=$TERM Personally, I wrote an auto login sequence which logs me on and types trs100 automatically at the Terminal type: prompt. You don't have to do that, just type in trs100 whenever you go online manually. If this is going over your head, just show a copy of this message to your system administarator and he will know what to do. If he needs a copy of the trs100 termcap entry, I can get it for him. -Tom Hodges Msg#:48328 *INTERNET* 10-15-96 22:16:34 From: M100@DILLERNET.COM To: RICHARD HANSON (Rcvd) Subj: CTRL CHARS AND ESCAPE SEQ "Printable" Ctrl Chars ---------------------- ^G bel bell ^H bs backspace (w/o erasing) ^I tab tab ^J lf linefeed (w/o carriage return) ^K vt home cursor (does not clear screen) ^L ff clear screen & home cursor ^M cr carriage return (w/o linefeed) ^[ esc escape (see escape sequence list below) ^\ fs cursor right (CRT only) (right-arrow key) ^] gs cursor left (CRT only) (left-arrow key) ^^ rs cursor up (CRT only) (up-arrow key) ^_ us cursor down (CRT only) (down-arrow key) DEL del basckspace & erase Escape Sequences ($=esc) ---------------- $A cursor up (stops at edge of screen) $B cursor down (stops at edge of screen) $C cursor right (stops at edge of screen) $D cursor left (stops at edge of screen) $E clear screen/home cursor $H home cursor (does not clear screen) $J erase from cursor to end of screen $K erase from cursor to end of line $L inserts blank line at cursor (text scrolls down) $M deletes line at cursor (text scrolls up to fill) $N bs & erase (will wrap around at start of line)(CRT only) $P cursor on $Q cursor off $R changes cursor from block to underline (CRT only) $T protects bottom line of screen $U unprotects bottom line of screen $V lock mode (screen will not scroll) $W unlock (screen will scroll normally) $X clear keyboard buffer? $Ylc positions cursor to line ASC(l)-32, column ASC(c)-32. If line or col greater than screen limits then uses maximum possible value. $b clear from cursor to beginning of screen (CRT only) $c executes WIDTH 40 (clears screen)(CRT only) $d executes WIDTH 80 (clears screen)(CRT only) $e starts flash mode (CRT only) $f ends flash mode (CRT only) $i stores current cursor position (CRT only) $j same as $E $k moves cursor to stored position (0,0 default) (CRT only) $l clears line at cursor position $n prints "ESCY" & lc code for current cursor position (CRT only) $p start reverse mode $q end reverse mode $z DO NOT USE! Most of the time it does WIDTH 40 & clears the stored cursor position. However sometimes it can cause a two-character delay between when a character is sent to the screen & when it is actually displayed. (ie type 123 & the 1 will show up as you type 3...) (CRT only) -- Leonard Erickson (aka Shadow) shadow@krypton.rain.com <--preferred leonard@qiclab.scn.rain.com <--last resort Msg#:44103 *INTERNET* 12-26-96 09:45:01 From: HODGES@WWA.COM To: RICHARD HANSON (Rcvd) Subj: RE: QUESTION: In mail you write: > First, keep in mind that this is a temporary setup. There is no way I would use this as a regular thing. But when I lie, I tell the Tunix shell that I have tvi925. This is the only thing I can access pine with right now and not get to many bad charachters. Before, I told it that I have ASCII which works perfectly, however, nothing on my IISP accepts pine except Telnet. I belive IBM310 works, however, all this provider accepts is ibm3101 which doesn't work well at all. As I type this into my m100, all I see on the screen are garbled charachters so I am not really sure what I have typed yet. ANyway, when the terminal preferance question shows up, I type in tvi925 I am almost running blind. I can read messages, but I can't read anything I am typing out to you now, I am basically tyuping blind, al I see are garbled charachters. I can't WAIT to order the vt100 emulator from club 100 club 100. Bye! -Tom Hodges Have you tried entering "m100" as the terminal type? Believe it or not, this *is* a widely supported type! Also, if your provider will allow adding types, you can add a M100 termcap. # termcap for the radio shack model 100 computer running its # built-in terminal emulator. The termcap entry was prepared at Microsoft # as was the model 100's standard software. # escape A cursor up # escape B cursor down # escape C cursor right # escape D cursor left # escape E clear screen and home cursor # e H home cursor # e J erase to end of screen # e K erase to end of line # e L insert line # e M delete line # e P turn off cursor # e Q turn on cursor # e T set system line? # e U reset system line? # e V turn off LCD ? # e W turn on LCD ? # e Y row/col cursor motion # e j clear screen don't move cursor # e l erase line don't move cursor # e p begin rev video # e q end rev video # e del change char under cursor to space MZ|m100|trs100|TRS100|radio shack model 100:\ :am:bs:le=^H:li#8:co#40:\ :ku=^^:kd=^_:kl=^]:kr=^\:up=\EA:nd=\EC:ho=\EH:ce=\EK:\ :cd=\EJ:cl=\EE:xt:cm=\EY%+ %+ :\ :so=\Ep:se=\Eq:al=\EL:dl=\EM: MZ|m100v|radio shack model 100 with video:\ :co#80:do=^_:is=\ED:le=^]:li#24:nd:^\:sr=\EI:up=^^:tc=m100: -- Leonard Erickson (aka Shadow) shadow@krypton.rain.com <--preferred leonard@qiclab.scn.rain.com <--last resort Msg#:44108 *INTERNET* 12-26-96 09:45:09 From: AFN@WEEVIL.MILLBURN.ORG To: RICHARD HANSON (Rcvd) Subj: RE: QUESTION: I am not sure if the Model 100/102 has it in the manual, but the model 200 has a full termcap entry in the Telcom section, under something like "How to connect to a Zenix system"... it works fine with Linux too, and I think I've tried it with Solaris.... The easiest thing to do instead of actually adding a termcap entry would be to set your terminal as vt52 if the shell server has an entry for it in the termcap... Model 200 (and probably the 100/102 as well...) uses vt52 terminal codes; then you'd just set your rows and columns to the appropriate number (stty rows 8 cols 40). > # termcap for the radio shack model 100 computer running its > # built-in terminal emulator. The termcap entry was prepared at Microsoft > # as was the model 100's standard software. > # escape A cursor up > # escape B cursor down > # escape C cursor right > # escape D cursor left > # escape E clear screen and home cursor > # e H home cursor > # e J erase to end of screen > # e K erase to end of line > # e L insert line > # e M delete line > # e P turn off cursor > # e Q turn on cursor > # e T set system line? > # e U reset system line? > # e V turn off LCD ? > # e W turn on LCD ? > # e Y row/col cursor motion > # e j clear screen don't move cursor > # e l erase line don't move cursor > # e p begin rev video > # e q end rev video > # e del change char under cursor to space > MZ|m100|trs100|TRS100|radio shack model 100:\ > :am:bs:le=^H:li#8:co#40:\ > :ku=^^:kd=^_:kl=^]:kr=^\:up=\EA:nd=\EC:ho=\EH:ce=\EK:\ > :cd=\EJ:cl=\EE:xt:cm=\EY%+ %+ :\ > :so=\Ep:se=\Eq:al=\EL:dl=\EM: > MZ|m100v|radio shack model 100 with video:\ > :co#80:do=^_:is=\ED:le=^]:li#24:nd:^\:sr=\EI:up=^^:tc=m100: > > -- > Leonard Erickson (aka Shadow) > shadow@krypton.rain.com <--preferred > leonard@qiclab.scn.rain.com <--last resort Msg#:43994 *INTERNET* 03-12-97 00:38:54 From: M100@ETHICS.DILLERNET.COM To: RICHARD HANSON (Rcvd) Subj: MODEL 100 TERMCAP/ I left out "dn=^\:nw=^J:ri=\EC:xo" since it wasn't in my man pages. TERMCAP M1|m100|PC-8201A|TRS-80 Model 100:\ :al=1*\EL:am:bl=^G:bs:bw:\ :cd=\EJ:ce=\EK:cl=\Ej:cm=\EY%+ %+ :co#40:cr=^M:\ :dl=1*\EM:do=\EB:ho=\EH:is=\EU\EW\Eq:\ :kb=^H:kd=^_:kl=^]:kr=^\:ku=^^:le=\ED:li#8:\ :mi:ms:nd=\EC:nl=^J:pt:se=\Eq:so=\Ep:sr=\EI:\ :ta=^I:up=\EA:vs=\EU:xt: TERMINFO m100|PC-8201A|Radio Shack Model 100, am,bel=^G,civis=\EQ,clear=\EE,cnorm=\EP,cols#40,cr=^M, cub1=\ED,cud1=\EB,cuf1=\EC,cup=\EY%p1%' '%+%c%p2%' '%+%c,cuu1=\EA, dl1=\EM,ed=\EJ,el=\EK,home=\EH,il1=\EL,ind=^J,kbs=^H, kcub1=^],kcud1=^_,kcuf1=^\,kcuu1=^^, lines#8,msgr,nel=^J,ri=\EI,rmso=\Eq,smso=\Ep,xon,xt, ---- Included Messages ---- # termcap for the radio shack model 100 computer running its # built-in terminal emulator. The termcap entry was prepared at Microsoft # as was the model 100's standard software. # escape A cursor up # escape B cursor down # escape C cursor right # escape D cursor left # escape E clear screen and home cursor # e H home cursor # e J erase to end of screen # e K erase to end of line # e L insert line # e M delete line # e P turn off cursor # e Q turn on cursor # e T set system line? # e U reset system line? # e V turn off LCD ? # e W turn on LCD ? # e Y row/col cursor motion # e j clear screen don't move cursor # e l erase line don't move cursor # e p begin rev video # e q end rev video # e del change char under cursor to space MZ|m100|trs100|TRS100|radio shack model 100:\ :am:bs:le=^H:li#8:co#40:\ :ku=^^:kd=^_:kl=^]:kr=^\:up=\EA:nd=\EC:ho=\EH:ce=\EK:\ :cd=\EJ:cl=\EE:xt:cm=\EY%+ %+ :\ :so=\Ep:se=\Eq:al=\EL:dl=\EM: MZ|m100v|radio shack model 100 with video:\ :co#80:do=^_:is=\ED:le=^]:li#24:nd:^\:sr=\EI:up=^^:tc=m100: m100|trs 80 model 100, am, xon, msgr, xt, cols#40, lines#8, bel=^G, cr=^M, nel=^J, ind=^J, ri=\EI, cuu1=\EA, cud1=\EB, cuf1=\EC, cub1=\ED, kcuu1=^^, kcud1=^_, kcuf1=^\, kcub1=^], kbs=^H, smso=\Ep, rmso=\Eq, civis=\EQ, cnorm=\EP, ed=\EJ, el=\EK, il1=\EL, dl1=\EM, home=\EH, clear=\EE, cup=\EY%p1%' '%+%c%p2%' '%+%c, kf1=\E1, kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, EF|m100|trs80-100|Radio Shack TRS-80 Model 100:al=\EL:\ :am:bl=^G:bs:bw:cd=\EJ:ce=\EK:\ :cl=\Ej:cm=\EY%+ %+ ::co#40:\ :dl=\EM:do=\EB:ho=\EH:\ :kd=^_:kl=^]:kr=^\:ku=^^:\ :le=\ED:li#8:ms:mi:nd=\EC\ :nw=^J:pt:sr=\EI::so=\Ep:\ :se=\Eq::up=\EA:vs=\EU:xt:xo:\ :k1=\Ef1:k2=\Ef2:k3=\Ef3:\ :k4=\Ef4:k5=\Ef5:k6=\Ef6:\ :k7=\Ef7:k8=\Ef8:\ m1|mod100|TRS Model 100 :co#40:li#8:bs:bw:am:cm=\EY%.%..:al=\EL: cd=\EJ:ce=\EK:cl=\EE:dl=\EM:do=\EB:ho=\EH: nd=\EC:se=\Eq:so=\Ep:up=\EA: From: Hansruedi The model 100 is the same as the PC8201 from NEC. # The NEC PC-8201A laptop (by H. Heeb, heeb@iis.ethz.ch) similar to 'h19' # Switch the function key display off (gain a line). p8|8201|PC-8201A|NEC PC-8201A laptop:\ :cr=^M:nl=^J:bl=^G:is=\EU\EW\Eq:\ :al=1*\EL:am:bs:le=^H:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :\ :dl=1*\EM:do=\EB:li#8:co#40:nd=\EC:ho=\EH:\ :ms:ta=^I:se=\Eq:so=\Ep:up=\EA:\ kb=^h:ku=\036:kd=\037:kl=\35:kr=\34:kn#4:\ :l1=F6:l2=F7:l3=F8:l4=F9: From: jsr@dexter.mi.org (Jay S. Rouman) r1|trs100|TRS-80 Model 100:\ :am:bs:xt:co#40:li#8:al=\EL:dl=\EM:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :\ :nd=^\:dn=^_:up=\EA:se=\Eq:so=\Ep:kl=^]:kr=^\:ku=^^:kd=^_: From: zakarian@cs.wisc.edu (Armand Zakarian) There is ananonymous ftp archive on ux1.cso.uiuc.edu in the directory ../tandy. There is a list of the ESC sequences in the ../tandy/tech directory. From: rph@sq.com (Pontus Hedman) trs100:\ :am:bs:so=\Ep:se=\Eq:\ :li#8:co#40:up=\EA:nd=\EB:\ :ri=\EC:ho=^K:cl=^L:\ :cr=^M:do=^J:nl=^J:bl=^G:\ :le=^H:cm=\EY%+ %+ :\ :ce=\EK:kb=^H:al=\EL:dl=\EM\ :ku=^^:kd=^_:kr=^\:kl=^]: Be sure to "stty -tabs" as well. To: comet Subject: Model 100 LCD functions and escape codes From: max (Max Pandaemonium) Comments: HELP FIGHT CONTINENTAL DRIFT Date: Tue, 19 Nov 91 13:51:42 PST Recently I've been fooling around with my Model 100 (just pulled it off the shelf and started playing with it . . . forgot how much fun it is). Calling Dark Side from it is somewhat of a pain, what with the spacebar only half-functional and all. Like I said in a previous message, I have lots of programs for it, but basic and machine-language. I'd be glad to trade with you if you like. I have the Booster Pak (an enormously useful tool, I might say -- allows you to store much more data), and I think I'll get a whole bunch more 32K RAM chips for it, since they're only a few bucks each. (I can add up to 10 more, for a total on the order of around 350-400K.) I have a Portable Disk Drive 2, so I can store things to disk as well Booster Pak, incidentally makes this rather easy. But like I said, I'd be willing to trade with you if you like. But on to the main point of this message . . . a _long_ time ago, you asked me for a list of Model 100 escape codes.For some unknown reason, I couldn't find them, even though they're right here in my assembler/debugger manual (I have one, incidentally). So, here they are. First, what each term means. The ROUTINE name is just an alphanumeri code to help you keep straight which routine it is; it's useful for labelling if you're using an assembler/debugger. The function is what it does, the entry address is where it's located in memory (you can get it with CALL from BASIC), and the equivalent ESC code is what you'd hit after the ESC key. ROUTINE FUNCTION ENTRY ESC CRLF Generates a carriage return and line feed 4222 -- HOME Moves cursor to home position 422D -- CLS Clears display 4231 -- SETSYS Set system line (lock line 8) 4235 T RSTSYS Reset system line (unlock line 8) 423A U LOCK Locks display (no scrolling) 423F V UNLOCK Unlocks display (scrolling) 4244 W CURSON Turns on cursor 4249 P CUROFF Turns offcursor 424E Q DELLIN Deletes line at current cursor position 4253 M INSLIN Inserts a blank line at cursor position 4258 L ERAEOL Erases from cursor to end of line 425D K ENTREV Sets reverse character mode 4269 p EXTREV Turns off reverse character mode 426E q I believe the last two functions were the only two you knew about, if I recall correctly. There are a multitude of other functions of all kinds in the reference manual, each requiring inputs from the accumulator and the high-low register-pair (A and H-L). Since these are the only two inputs (even though there are a number of other registers), you can make all the calls from BASIC using CALL.