SOLVED Colours in man pages and perl debugger

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

SOLVED Colours in man pages and perl debugger

Postby nutmeg » Apr 17th, '13, 10:21

When I run "man" (in an xterm) part of the text is shown in royal blue, and part in magenta. A similar thing happens in the Perl debugger. With my old system (Mandriva 2005) I was able to change these colours by setting two values via xrdb. I think they were *colorBD and *colorUL, but can't be sure as my old machine is dead. I've Googled and found suggestions to set similar variables (XTerm*colorBD and XTerm*colorUL or XTerm*VT100*colorUL and XTerm*VT100*colorBD) but none of these have any effect.
As I work with a dark blue background the default colours make the output from "man" almost impossible to read.

I am ideally looking for a solution which will let me define the two colours as hex values, but failing that a way to restore to bold and underlined text.

Any solution using just the 8 basic colours (as in LS_COLORS) is not much use for me, as they don't work well with my colour settings
Last edited by nutmeg on Jun 19th, '15, 02:28, edited 1 time in total.
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: Colours in man pages and perl debugger

Postby oj » Apr 17th, '13, 18:30

Does it happen in other terminals?
oj
 
Posts: 232
Joined: Aug 23rd, '12, 00:22

Re: Colours in man pages and perl debugger

Postby nutmeg » Apr 20th, '13, 03:07

No, in lxterminal I get bold and underlining rather than colours, but the "normal" text is washed out and hard to read, so that's not really a solutilon/
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: Colours in man pages and perl debugger

Postby doktor5000 » Apr 20th, '13, 19:18

I think that's more of a pager setting, not directly the terminal. Check the less color options & settings.
E.g.
Code: Select all
set | grep -i less
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Colours in man pages and perl debugger

Postby nutmeg » Apr 21st, '13, 04:31

That gives:
LESSCHARSET=utf-8
LESSOPEN='|/usr/bin/lesspipe.sh %s'
SYSTEMD_PAGER='/usr/bin/less -FR'

Which doesn't seem to have anything to do with colours
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: Colours in man pages and perl debugger

Postby nutmeg » May 8th, '13, 06:04

I have now managed to get it using the colours I want, but not in the first xterm that I open, only in subsequent ones. I have put the settings I want into a file colours_for_xrdb, and my .bashrc has the line xrdb -merge ~/colours_for_xrdb. So it seems that my .bashrc is not sourced until after I have created the xterm, which is very strange, but at least I can read the man pages now.
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: Colours in man pages and perl debugger

Postby nutmeg » Jun 17th, '15, 05:36

I've finally worked out what was happening. I opened the first xterm from the Application Launcher Menu, and the second xterm by typing "xterm &" in the first xterm. They looked the same except that the first had "Terminal" in the title bar, and the second had "xterm". It seems that the command in the menu which is labelled xterm actually runs "xterm -name Terminal", so it was ignoring the Xresources I had set for xterm.
I've now added settings for Terminal to my colours_for_xrdb file, and everything is displayed correctly.

But why does the Application Launcher Menu not just run "xterm"?
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: Colours in man pages and perl debugger

Postby doktor5000 » Jun 17th, '15, 22:07

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Colours in man pages and perl debugger

Postby nutmeg » Jun 18th, '15, 02:37

I would mark it SOLVED if I knew how to , but unlike other forums I use, I can't see an Edit button. Is it indicated by some sort of background image? I always override the background and foreground of web pages as I can only read light text on a plain dark background
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: Colours in man pages and perl debugger

Postby isadora » Jun 18th, '15, 12:45

The Edit-button is in the top-right corner of your message-frame.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: SOLVED Colours in man pages and perl debugger

Postby nutmeg » Jun 19th, '15, 02:30

The Edit button is totally invisible with my accessibility settings, but I eventually found it by hovering my mouse and looking for a cursor change
nutmeg
 
Posts: 19
Joined: Mar 27th, '13, 06:31

Re: SOLVED Colours in man pages and perl debugger

Postby doktor5000 » Jun 20th, '15, 00:21

Next time we know - just tell us that you got bad vision and we can take care of that for you :)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest