[SOLVED] colored manpages not working

Post Reply
theshank
Crewman
Posts: 3
Joined: Wed Jul 19, 2023 3:42 am

I added the following lines to the end of my bashrc.

Code: Select all

export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;4;31m'
Logged out and logged in. However, I am not getting any colors in manpages.

I did this on a fresh install of ArcolinuxD (with XFCE as the desktop).

I tried looking into the files that might be sourced while starting `bash` but I couldn't find anything that would cause this. The closes I could find was that Arcolinux has a line

Code: Select all

unset TERMCAP
in /etc/profile but I dont think that it should cause this issue. I am not sure how to solve this.
Last edited by theshank on Thu Jul 20, 2023 4:11 pm, edited 1 time in total.
User avatar
erikdubois
Captain
Posts: 5627
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

check out 'most'
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.
theshank
Crewman
Posts: 3
Joined: Wed Jul 19, 2023 3:42 am

erikdubois wrote: Wed Jul 19, 2023 8:02 am check out 'most'
Thanks Erik for the prompt response. I tried using `most` as well. I can see that in `.bashrc`, that came with ArcolinuxD, the `PAGER` is set to `most`. But I am not getting any colors in most either. Here is a sample screenshot:

Image
User avatar
fennec
Crewman
Posts: 129
Joined: Wed Dec 28, 2022 9:54 pm
Location: UK
Contact:

downgrade package groff to 1.23.0-3 if you are on 1.22.4-10

or

add export GROFF_NO_SGR=1 to your ~/.bashrc

see https://bbs.archlinux.org/viewtopic.php?id=287185
theshank
Crewman
Posts: 3
Joined: Wed Jul 19, 2023 3:42 am

fennec wrote: Thu Jul 20, 2023 1:26 pm downgrade package groff to 1.23.0-3 if you are on 1.22.4-10

or

add export GROFF_NO_SGR=1 to your ~/.bashrc

see https://bbs.archlinux.org/viewtopic.php?id=287185
Thank you! This solves it for me.
Post Reply

Return to “Terminals”