Operating System - HP-UX
1833338 Members
2655 Online
110051 Solutions
New Discussion

view 132 col. on the shell

 
eric_204
Frequent Advisor

view 132 col. on the shell

I use Reflection and Netterm to telnet to the UX server , I run the processes on the shell and get the result, however , the result can only show 80 characters , some characters on the right hand side can't be seen even I changed it to 132 col. , could suggest how to see all the characters on the screen.



edp//> ps -ef |grep user1
root 5775 5774 0 14:20 pts/88 00:00:00 login -- user1
user1 5781 5775 0 14:20 pts/88 00:00:00 /usr/local/bin/orc /usr/local/e...
user1 5975 5781 0 14:20 pts/88 00:00:00 /usr/local/bin/orc/_proorc /u...
ckyoung 9474 9072 0 14:30 pts/8 00:00:00 grep user1
4 REPLIES 4
Elmar P. Kolkman
Honored Contributor

Re: view 132 col. on the shell

Try running the command resize after changing the size of your terminal emulator or set the environment variable 'COLUMNS' to the right number of columns, 132 in your case.
Every problem has at least one solution. Only some solutions are harder to find.
eric_204
Frequent Advisor

Re: view 132 col. on the shell

thx reply, if I am not misunderstand your meaning , I hv set the variable COLUMNS to 132 , and set the Reflection to allow view 132 , but the result still only show 80 col. , any step is missing ? thx.
Mark Grant
Honored Contributor

Re: view 132 col. on the shell

"resize" doesn't actually reset anything. All it does is show you what the values of "COLUMNS" and "ROWS" should be set to for the size of window you are typing into to. It displays these in such a way that you can cut & paste them to set the variables.

you must export the COLUMNS and ROWS variables to the setting you want. However, some shells do not recognize these settings. try a different shell if you are getting no luck.

With text based applications running in your shell, it is entirely up to the application wether it takes any notice of them or not. When you resize a window, a signal (SIGWINCH) is sent to the application. Some applications then decide to find out the geometry of the window they are running in and adjust output accordingly. Some applications just ignore it. Some applications will use the ROWS and COUMNS variables and some won't.

However, the "portable" way that these things should work is a setting in /etc/terminfo or termcap. Here there is a setting to set the maximum width of the terminal. This should work with any shell.
Never preceed any demonstration with anything more predictive than "watch this"
John Flanagan
Regular Advisor

Re: view 132 col. on the shell

you need to set your session to use 132 colums.

stty columns 132

Regards,

John.