Operating System - HP-UX
1833873 Members
1801 Online
110063 Solutions
New Discussion

Lines wraping on xterm terminal

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Lines wraping on xterm terminal

Hi,

I am using xterm of WRQ Reflection X.
Sometime when i open a text file using vi editor, lines are wraping on other lines.

Also full screen output is not coming correctly.
Sometime lines are visible in only half the xterm terminal screen.

Can someone suggest how to fix this ?

Thanks,
Shiv
6 REPLIES 6
Indira Aramandla
Honored Contributor

Re: Lines wraping on xterm terminal

Hi Shivkumar,

Check the display setting of your reflection scree.

On the tool bar, under setup tab select Display and then the Screen tab.

There you will have the lines and columns allowed to display.... and the font...etc



Indira A
Never give up, Keep Trying
Steven E. Protter
Exalted Contributor

Re: Lines wraping on xterm terminal

Shalom Shiv,

Two factors besides Reflections X.

The choice of TERM variable. You may wish to try TERM=hp or TERM=vt100 or TERM=xterm

It could also be the termcap or lack of one associated with that terminal type. I'd try various TERM variables first however.

Good Luck,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Nikitka
Honored Contributor

Re: Lines wraping on xterm terminal

Hi,

if the TERM variable is set, you can try a
eval `resize`
before (re-)opening vi.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Bill Hassell
Honored Contributor
Solution

Re: Lines wraping on xterm terminal

Make sure you do NOT have TERM hardcoded to some value in your /etc/profile or .profile. Replace the code in /etc/profile where a test is made as to whether TERM is set. Any value of TERM that comes in at the start of /etc/profile is generally meaningless for HP-UX, so all the test lines should be replaced with:

eval $(ttyset -s)

This will set the TERM, LINES and COLUMNS values based on the terminal. Note also that resizing a terminal window changes the number of lines and columns. For modern versions of HP-UX, the Xwindow code signals the HP-UX system to automatically change the LINES and COLUMNS variables. If you are running really obsolete code (not up to date on Xwindow patches), this resize signal may not be working. Test like this:

echo $COLUMNS $LINES

then change the shape of the window and again:

echo $COLUMNS $LINES

If the values do not change, then your HP-UX machine is badly out of date and you can't change the shape of the terminal window without manually running the rezsize command like this:

eval $(resize)

vi and SAM and swinstall and in general, all menuing programs will malfunction if the variables LINES and COLUMNS do not match your tereminal's screen.

Note also that if you are not running /etc/profile at login, you need to create a .Xdefaults file in your HOME directory on the HP-UX machine. Create it like this:

echo "*loginShell: true" >> $HOME/.Xdefaults

Now, when you start a terminal window such as dtterm, a 'normal' HP-UX login will occur.


Bill Hassell, sysadmin
Chan 007
Honored Contributor

Re: Lines wraping on xterm terminal

Hi Shiv,

Try the following

1. TERM=vt100; export TERM
2. do "resize"

I guess you are not doing "resize"

Sometimes, you need to setup this on your RefX, Enable the Auto Warp button.

Chan
Shivkumar
Super Advisor

Re: Lines wraping on xterm terminal

Thanks Bill for your great explanation. Regards. Shiv