Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jeff Sturm — — source: Informix-list mailing list archive (1991-1998)
Jack Parker (jparker@hpbs3645.boi.hp.com) wrote:
: [...]
: create a termcap entry which defines the proper number of lines and columns
: w_hp:\\
: :li#50:co#132:tc=hp:
: Of course you must then set TERM=w_hp or whatever.
Why not just set LINES=50 and COLUMNS=132? It will override whatever
is in termcap. On some platforms, the following startup code will work
regardless of the window size:
#!/bin/ksh
set `stty size`
if [ $1 = 0 ]; then
export LINES=`tput lines`
else
export LINES=$1
fi
if [ $2 = 0 ]; then
export COLUMNS=`tput cols`
else
export COLUMNS=$2
fi
Then you can use fgl_getenv("COLUMNS") in you program to decide which form
to open.
--
Jeff Sturm
ZenaComp Inc.
jsturm@zenacomp.com
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.