'man' for wide terminal
By katsumii on Dec 02, 2007
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
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.