unbent@ecsvax.UUCP (01/09/84)
Here is a termcap for the Radio Shack TRS-80 Model III, running under Tandy's VIDTEX+ smart terminal software. This termcap is adequate for vi and, as far as I can tell, for emacs as well. VIDTEX+ is probably simulating some known terminal, but I don't know which one. I keep this termcap in a file in my home directory called "myterminal", and setup the shell variable TERMCAP to access it by including the line TERMCAP=$HOME/myterminal; export TERMCAP in my .profile file. To use vi, I include VISUAL=/usr/ucb/vi; export VISUAL and initialize window size and word wrapping for my screen by EXINIT='set window=15 wrapmargin=2'; export EXINIT NOTE: If you have not specified a "wrapmargin" for vi, it is important to disable the word-cleaning function of VIDTEX+ when running that editor (i.e., to use the VIDTEX command meta-B [up-arrow + B] which allows word breaking). If this is not done, when, for example, vi redraws the screen (^L), what you see will not correspond to the editor's own screen map, and cursor movement commands will appear to work quite peculiarly. Whether something like this holds true for emacs as well, I don't know. I tend to use vi almost exclusively. --------------------------------------------------------------- trs80-iii|trs80-3|Radio Shack TRS-80 model III:\ :am:bs:bw:co#64:li#16:nd=\EC:up=\EA:do=\EB:cd=\EJ:\ :ce=\EK:cl=\Ej:ho=\EH:kl=^H:kr=^I:\ :cm=\EY%+ %+ : --------------------------------------------------------------- This termcap corresponds to a 16 line x 64 column screen with automatic line wrapping at the right margin (am) and standard backspacing by ^H (bs) which wraps from column 0 to the last column of the preceding line (bw). Standard escape sequences are provided for cursor movements and screen clearing: escape-C = non-destructive space (nd) escape-A = upline (up) escape-B = down one line (do) escape-J = clear to end of display (cd) escape-K = clear to end of line (ce) escape-j = clear screen (cl) escape-H = home cursor (ho) Cursor positioning by row and column (cm) uses escape-Y, followed by the row number and the column number offset by a blank character [=20H]. The left arrow key sends ^H (kl); the right arrow key, ^I (kr). Under VIDTEX+, the up- and down-arrow keys serve control functions. Most of you probably knew most of this already, but I'm including all the minute details anyway, in case there are some other folks like me out there. I logged on cold a couple of months ago knowing *nothing* about Unix, and what you see above represents many hours of grubby exploration and discovery work. If I can spare one new user that, it's worth it. --Jay Rosenberg (ecsvax!unbent)