Re: [PATCH] help: colorize man pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Felipe Contreras wrote:
> This is the equivalent of my latest patch:
> 
>   man () {
>     GROFF_NO_SGR=1 \
>     LESS_TERMCAP_md=$'\e[1;31m' \
>     LESS_TERMCAP_me=$'\e[m' \
>     LESS_TERMCAP_us=$'\e[1;34m\e[4m' \
>     LESS_TERMCAP_ue=$'\e[m' \
>     LESS_TERMCAP_so=$'\e[1;35m\e[7m' \
>     LESS_TERMCAP_se=$'\e[m' \
>     command man "$@"
>   }

Wait a second...

  MANPAGER="less -Dd+r -Du+b -Ds+m" GROFF_NO_SGR=1 command man "$@"

Reading man pages pays off ;)

-- 
Felipe Contreras



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux