'man' for wide terminal

Maybe, I'm missing something. I run gnome-terminal on Solaris 10 u4. When I run 'man ls', only the 2/3 of the terminal real estate is used. I mean right 1/3 is totally white. I googled a bit and found this message. Looks like people out there thinks Solaris's man is rather one track minded.

I need to ask our internal experts or search in internal resources for official answer or workaround.
Meanwhile, here's my take. This is bash function.


bash-3.00$ declare -f wideman
wideman ()
{
sed "s/ll 6.5i/ll $(echo $((COLUMNS-1))|sed "s/\^\\(.\*\\)\\(.\\)$/\\1.\\2/")i/" /usr/share/lib/tmac/an >/tmp/__MaN.macro.$$;
man -T /tmp/__MaN.macro.$$ $1
}

You can add these 5 lines to ~/.bash_profile.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today