Operating System - HP-UX
1831382 Members
3309 Online
110025 Solutions
New Discussion

Re: How can I change the number of columns in telnet ?

 
SOLVED
Go to solution
Thierry Doppler
Frequent Advisor

How can I change the number of columns in telnet ?

Hi,

I'm using telnet to connect an HP-UX machine, I want so see long path & files names, but with 80 columns, i missing some parts of long filenames. For example, the command top display only 11 characters.

Thanks you for your help.

Thierry
5 REPLIES 5
Luk Vandenbussche
Honored Contributor
Solution

Re: How can I change the number of columns in telnet ?

Hi Thierry,

What telnet emulation software are you using?
I use refection, here you can customize your columns.

I guess, it is a problem with your client software.
Thierry Doppler
Frequent Advisor

Re: How can I change the number of columns in telnet ?

OK, thanks you, i found the parameter in my client !

Thierry
Sivakumar TS
Honored Contributor

Re: How can I change the number of columns in telnet ?


Dear Doppler,

If you use a plain windows telnet, you can use MODE command to set the columns.

With Regards,

Siva.
Nothing is Impossible !
Cem Tugrul
Esteemed Contributor

Re: How can I change the number of columns in telnet ?

Hi,
Take a man page of stty

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Bill Hassell
Honored Contributor

Re: How can I change the number of columns in telnet ?

Telnet doesn't know anything about lines and columns. The shell (and HP-UX commands) pay attention to the setting for $LINES and $COLUMNS, two variables that are normally set automatically in your login profile. However, just setting COLUMNS=100 won't produce the desired result until your local terminal changes it's font and layout.

So you are correct to change your local terminal emulator to have longer lines. With modern terminal emulators, they will respond to screen size queries from the ttytype program, and set $COLUMNS correctly. You can see this by running the ttytype command manually: ttytype -s


Bill Hassell, sysadmin