Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set COLS envirronment variable in telnet session 1

Status
Not open for further replies.

hspoulsen

IS-IT--Management
Dec 13, 2001
11
0
0
DK
Our users have different screen sizes, and we would like to run our application in two different sizes; 24x80 and 30x132 lines/columns.

Our terminal software (K95) supports this. Our software supports this, but need to have two envirronment variables set (LINES and COLS).

I would like our login-script to detect which resolution the K95 is using, and then set the envirronment variables accordingly.

Is this possible?

Kind regards
Henrik Staun Poulsen
DAI A/S
Denmark
 
Insert these 2 lines in .profile
export LINES=`tput lines`
export COLS=`tput cols`
 
That was fast, and it works too.
Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top