[Suns-at-Home] xterm number of columns when performing man pages display

Phillip Tong pgt@myrealbox.com
Fri, 24 Nov 2006 21:05:50 +1100


Eugene Work0 wrote:
> Hello,
> 
> Solaris 10 (SPARC), running JDS, I run xterm but, when I use man
> command, for example, I can't see the text across the wide terminal,
> it's limit to 80 columns.
> 
> My default shell is bash, I use the a wide resolution (exploting xvr
> 1000 capabilities), and the command: export COLUMNS=100 doesn't
> help. I don't know if I have to deal with tic or termcap files, I was
> not lucky changing (the behavoir of the) pager neither.
> 
> Any workaround ?

Try using the 'stty' command. I find I have to run it on some terminals 
that don't set the number of rows and columns automatically (and in 
these case, I usually have to set the TERM variable too).
To see if this is the case, run 'stty -a' and read off the rows and 
columns values.

To change it, run the following (using 43 lines/rows and, say, 100 
columns in your case):

stty rows 43 columns 100

I would also make sure your xterm window is that large (use the -g 
parameter to xterm to set it) before running this inside the xterm.

See how you go.

Regards,
Phil.