Operating System - HP-UX
1753435 Members
4575 Online
108794 Solutions
New Discussion юеВ

Re: Size of terminal windows

 
SOLVED
Go to solution
Vibhor Kumar Agarwal
Esteemed Contributor

Size of terminal windows

Hi,

When I log into my HP machine either by telnet or by X-Servers, the size of my terminal is very small.

I have tried to increase the buffer size of telnet window to 9999, still output comes in only half of window.
In X-servers, what is the option of increasing the buffer size. My terminal window shows only about 100 lines.

Thanks in Advance
Vibhor Kumar Agarwal
25 REPLIES 25
Stuart Browne
Honored Contributor

Re: Size of terminal windows

You're using an XTerm, yes?

Most XTerm's i've used have the option '-sl ' option, of which takes the number of lines you want as a scroll-back buffer.
One long-haired git at your service...
harry d brown jr
Honored Contributor

Re: Size of terminal windows


With telnet it depends on who's telnet you are using.

As for X windows, what client are you using?

I use this for exceed, connecting to X able boxes (the path to xterm might change, depeneding upon OS):

/usr/bin/X11/xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display IPADDR:0.0


live free or die
harry d brown jr
Live Free or Die
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Size of terminal windows

For telnet I am using simple Windows based telnet.
Yes, I am using exceed.

By the way, what is xterm, I have just started using exceed, is this somehow related to it.
My exceed works fine when i connect to other Solaris boxes. In those it gives me about 2000 lines.
Vibhor Kumar Agarwal
harry d brown jr
Honored Contributor

Re: Size of terminal windows

This is the xs file I use for HP boxes:

[Xstart]
Kerberos V5 Support=0
Destroy TGT=0
Use Encryption=0
Load Balancing Support=0
Start Method=0
Program Type=0
User Id=root
Password=
Command=/usr/bin/X11/xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display @d
Info Prompt=0
Description=TITLE
Host=HOSTNAME
Host Type=HP
Connect Timeout=1
Close Timeout=10
Response Timeout=4
Prompt Timeout=2
Show Progress=1
Log Reply=1
UserId Prompt=login:|Username:
Password Prompt=password:
Shell Prompt=$|%|>|#|}
Optional Prompt1=
Optional Reply1=
Enable Extra Prompts=0
Extra Prompt1=
Extra Prompt2=
Extra Prompt3=
Extra Prompt4=
Extra Prompt5=
Extra Prompt6=
Extra Prompt7=
Extra Prompt8=
Extra Reply1=
Extra Reply2=
Extra Reply3=
Extra Reply4=
Extra Reply5=
Extra Reply6=
Extra Reply7=
Extra Reply8=
Startup Menu=1
Override Default Port=0
Override Port=


This I use for Solaris (Just chaneg the command prompt):

Command=/usr/openwin/bin/xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display @d


These are usually saved under C:\Documents and Settings\YOURUSERNAMEHERE\Application Data\Hummingbird\Connectivity\9.00\Exceed

as hostname.xs file names

live free or die
harry d brown jr
Live Free or Die
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Size of terminal windows

I have exceed 10.
I got to the directory but there are no .xs files there.
Vibhor Kumar Agarwal
TwoProc
Honored Contributor

Re: Size of terminal windows

I think you've just got your COLUMNS and LINES environment variables not set since you resized your window. This should happen automatically when using xterm.
Make sure that TERM is set to "xterm" (if that is the terminal you're using).
The easiest way to fix your COLUMNS and LINES variables is to run "/usr/bin/reset" - if it is in your path - just run "reset".
We are the people our parents warned us about --Jimmy Buffett
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Size of terminal windows

Mine $TERM variable was set to dtterm.
What's it?
I set it to xterm and did a reset.
Nothing happened.
Vibhor Kumar Agarwal
TwoProc
Honored Contributor

Re: Size of terminal windows

Nothing wrong with dtterm. Just leave it at that and don't change the $TERM value. But, go ahead and run the reset. If you
run "echo LINES:$LINES COLUMNS:$COLUMNS" both before and after running reset you'll see the difference. You should be able to edit in full screen mode after running reset command now. If not, run "tset" after running reset and then run your vi session - hopefully that will fix it.
We are the people our parents warned us about --Jimmy Buffett
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Size of terminal windows

Booohoooooo,

The LINES=24 and COLUMNS=80 before and after reset and tset.
I think I haven't made myself clear.

When i telnet then there is a problem of only half screen as output comes only in that.

When i connect via exceed the output comes in whole window, but the problem is output after approx 100-200 lines goes off range and i can't scroll after that. How i can increase this.
Vibhor Kumar Agarwal