[comp.sys.atari.st] status line in uniterm

leilabd@syma.sussex.ac.uk (Leila Burrell-Davis) (02/12/91)

cliff@jarthur.Claremont.EDU (Clifford Stein) writes:
> How can I get a status line in Uniterm 2.0e?
>
> I want to do this so I can run the sysline program on UNIX systems.  I can
> set the number of rows on my terminal with the stty program (i.e to 23 rows
> which will leave an extra line at the bottom of the screen for the status
> line) but sysline still says I don't have status line capability even though
> I'm running in vt100 mode.

The problem is not with Uniterm but that sysline has looked at the
termcap entry for a vt100 and is complaining that it doesn't include
information on how to write to the status line (not surprising,
since vt100's don't have one).

What you need is a termcap entry that does support the status line.
Check out /etc/termcap on your system to see if it has a vt320 entry
and try if that works. In case you don't have one, I am appending one
to this message. It works fine with Uniterm. You either need to get
your system administrator to add it to /etc/termcap or else you can
set up a file containing it and then set up the environment variable
TERMCAP to point to it, e.g.
	setenv TERMCAP /home/myname/termcap
In either case, you also need to set the TERM environment variable
to vt320, e.g.
	setenv TERM vt320

(PC users may care to note that this also works very well with
MS-Kermit.)

Leila
------------------------- start of vt320 termcap entry -------------
#
# Description: DEC vt320 termcap entry
#
#       Created by: composer@cs.bu.edu on 10 Feb 1990.
# Last modified by: composer@cs.bu.edu on 20 Mar 1990.
# Posted to USENET newsgroup comp.terminals on 15 Feb 1990.
# Reposted to USENET newsgroup comp.terminals on 20 Mar 1990.
# ------------------------------------------------------------------------
#
# This vt320 termcap entry is a test entry for a vt320.  (Imagine that? ;-)
# It was written from scratch.  All (well, at least, most :) of the
# capabilities have been commented and should be approximately in the order
# that they are in the entry.  I took some educated guesses at some of
# these, with info from the vt320 "Installing and Using .." manual and from
# some other termcap entries.  I have yet to test the status line stuff, I
# will probably test it soon, though.  Where I wasn't sure what to put for
# a capability, I added a comment of some sort.  Also, the initialization
# string has comments about what each control sequence is supposed to do.
# If you have any comments or questions regarding this termcap entry, or if
# you see something I missed, please send me a note.  Thanks...
#
# Enjoy!!
#
#			-jeff
#
# p.s. Yeah, all these comments don't need to be included, but (who knows?)
# they might be useful for some of those out there that have not built a
# termcap entry before, or have forgotten.  If any changes are made that I
# feel should be reposted, I will probably only post the main termcap entry
# with the comment for the `is' capability only.  But, then...I dunno.. :)
#
# Jeff Kellem
# INTERNET: composer@cs.bu.edu   (or composer@bu.edu)
# UUCP: ...!harvard!bu-cs!composer
# ------------------------------------------------------------------------
#	hs: has status line
#	es: other display cmds work while writing the status line
#		(i.e. escape strings work)
##	ts: cmds to move cursor into status line
#	    moves to status line, moves cursor to 1,1 in status line (?),
#	    then clears to end of line
#	fs: cmds to move cursor back from status line to previous position
#	ds: cmds to disable the display of the status line
#	    maybe we should just set status line type to none for disable
#		as in,		:ds=\E[0$~
#		but, then, may have to chg to host-writable stat line to
#		move into it.  :(  probably leave it alone for now..
#		anyways, would rather just keep it host-writable..
#	    currently, we're doing ..
#	    moves to status line, moves cursor to 1,1 in status line (?),
#	    clears to end of line, then moves cursor back to prev position
#	im: enter insert mode
#	ei: exit insert mode
#	IC: insert N chars
#	mi: safe to move cursor in insert mode. I'm assuming that the
#	    terminal remains in insert mode. (I need better technical docs ;-)
#	dc: cmds to delete one char position at the cursor
#	DC: cmds to delete N chars
#	dm & ed: enter/exit delete mode .. should these be here? NO del mode!
#	    in some termcap entries they seem to be set to nothing, as in:
#		:dm=:ed=:  ... and others they are nonexistent
#	al & AL: insert one/N line/s
#	dl & DL: delete one/N line/s
#	cs: set scroll region - 2 args, top and bottom lines of region
#	sf: cmds to scroll one line up
#	sr: cmds to scroll one line down
#	am: flag says wrap on margin
#	xn: flag says cursor on last column/line wrap glitch
#	ce: cmds to clear to EOL
#	cl: cmds to clear entire screen and position cursor at upper left
#	cd: cmds to clear the line the cursor is on to end of screen
#	ec: cmds to clear N chars, starting with char cursor is on
#	cm: cmds to move to cursor position LINE, COLUMN
#	ho: cmds to move cursor to home position, upper left corner
# @@@ NO ll: cursor to lower left ??
#	cr: cursor to beginning of line ?? set to ^M right now, why not?
#	nw: cmds to move cursor to beginning of next line
#	ta: cmds to move cursor forward to next hardware tab
# @@@ NO bt: NO backward tab that I can find .. so, NOT included
#	bs: ADDED 27 Feb 1990, nethack and some older programs need this
#	    `bs' capability is obsolete now, though...
#	le: cmds to move cursor left one column - should this just be ^H ??
#	bc: OBSOLETE - same as `le' capability --REMOVED
#	nd: cmds to move cursor right one column
#	up & do: cmds to move cursor up/down one line
#	LE,RE,UP,DO: move cursor N of above lower case capabilities
#	sc & rc: save/restore cursor position
#	so & se: start/end standout mode (reverse video)
#	ms: says that it is safe to move cursor in standout mode..
#	    is this ok??? @@@ ?? seems so..but, maybe not..who knows?
#	mb: cmds to turn on blinking attribute
#	md: cmds to turn on bold/double-bright attribute
#	mk: cmds for invisible attribute
#	mr: cmds to turn on reverse attribute
#	me: cmds to turn OFF all attributes
# @@@ What about uc & ul capabilities .. old underlining stuff..??
# @@@   doesn't seem like vt320 can deal with it, but who knows?
# @@@ What to do about alternate character set??  vt320 can handle more
# @@@ than one alternate set, it looks like.
#	vi & ve: cmds to turn cursor off & on
#	bl: cmds to sounds bell
#	ks: cmds to put numeric keypad and cursor keys in application mode
#	ke: cmds to put numeric keypad and cursor keys back to normal
#	kl/kr/ku/kd: chars sent by left/right/up/down arrow keys in appl mode
#	k1 .. k4: chars sent by pf1 .. pf4 keys
#	l1 .. l4: strings on pf1 .. pf4 keys (really, "pf1" to "pf4")
#	   @@@	  put here so as not to confuse with f1 to f4 keys
#	kD: chars sent by the `Remove' key ("delete char" key)
#	kI: chars sent by the `Insert Here' key ("ins char" or 
#	    "enter ins mode" key)
#	kN: chars sent by the `Next Screen' key ("next page" key)
#	kP: chars sent by the `Prev Screen' key ("previous page" key)
#	  what about "scroll forward/reverse" key capabilties instead?? nah..
#	is: initialization string
#	    exit vt52 mode
#	    set operating mode to vt300 mode, 7-bit controls (default)
#	    soft terminal reset
#	    set screen width to 80 columns, side-effect => clears screen
#	    set screen mode to dark background
#	    OVERRIDE disabling of autowrap (from soft reset)
#		probably shouldn't, but who cares?  :)
#	    set autorepeat mode on
#	    set scrolling to jump scroll
#	    set keyboard usage mode to typewriter
#	    set status line type to host-writable
#  @@@  set tab stops to every 8 positions (only first 9, for 80 col)
#  @@@  *NO* need to set tab stops.  `tset' should try to do it, since `ct'
#  @@@  and `st' capabilities exist.  It uses a combination of `ct', `st',
#  @@@  and `ch' (or `cm') capabilities to set tab stops at every 8 pos.
#
#	rs: reset string, same as `is' capability, right now..
#	    any other suggestions?
#	st: cmds to set tab stop at current cursor column
#	ct: cmds to clear all tab stops
#
db|vt320|vt300|vt320-am|vt300-am|dec vt320 w/am:\
	:co#80:li#24:\
	:hs:\
	:es:\
	:ts=\E[1$}\E[;H\E[K:\
	:fs=\E[0$}:\
	:ds=\E[1$}\E[;H\E[K\E[0$}:\
	:im=\E[4h:ei=\E[4l:mi:\
	:IC=\E[%d@:\
	:dc=\E[P:DC=\E[%dP:\
	:al=\E[L:AL=\E[%dL:dl=\E[M:DL=\E[%dM:\
	:cs=\E[%i%d;%dr:sf=\ED:sr=\EM:\
	:am:xn:\
	:ce=\E[K:cl=\E[H\E[J:cd=\E[J:ec=\E[%dX:\
	:cm=\E[%i%d;%dH:ho=\E[H:\
	:cr=^M:nw=\EE:ta=^I:bs:\
	:le=\E[D:nd=\E[C:up=\E[A:do=\E[B:\
	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:DO=\E[%dB:\
	:sc=\E7:rc=\E8:\
	:so=\E[7m:se=\E[27m:ms:\
	:mb=\E[5m:md=\E[1m:mk=\E[m:mr=\E[7m:me=\E[m:\
	:us=\E[4m:ue=\E[24m:\
	:vi=\E[?25l:ve=\E[?25h:\
	:bl=^G:\
	:ks=\E[?1h\E=:ke=\E[?1l\E>:\
	:kl=\EOD:kr=\EOC:ku=\EOA:kd=\EOB:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
	:l1=PF1:l2=PF2:l3=PF3:l4=PF4:\
	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
	:is=\E<\E[63;1"p\E[!p\E[?3l\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
	:rs=\E<\E[63;1"p\E[!p\E[?3l\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
	:st=\EH:ct=\E[3g:
#
db|vt320-w|vt300-w|dec vt300:\
	:co#132:\
	:is=\E<\E[63;1"p\E[!p\E[?3h\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
	:tc=vt320:
#
#	da: says scroll up may bring back some lines..does it? haven't
#	    tried it.  (Maybe should get rid of `da'...up to you.)
#	Are there any other enhancements made in Kermit's vt320 emulation
#	that I should add?
#
de|vt320-kermit|mskermit|kermit-vt320|MS-Kermit v3.00 vt320 emulation:\
	:ch=\E[%dG:cv=\E[%dd:\
	:da:tc=vt320:
# these names are getting ridiculous ..
de|vt320-kermit-w|mskermit-w|kermit-vt320-w|MS-Kermit vt320 (wide):\
	:co#132:\
	:is=\E<\E[63;1"p\E[!p\E[?3h\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
	:tc=vt320-kermit:
# End of vt320 termcap entry
-- 
Leila Burrell-Davis, Computing Service, University of Sussex, Brighton, UK
Tel:   +44 273 678390              Fax:   +44 273 678470
Email: leilabd@syma.sussex.ac.uk  (JANET: leilabd@uk.ac.sussex.syma)