* [gentoo-user] How do I get rid of colors (console and xterm)? [not found] <d27fb9e6-dd78-99dd-76ce-b9aaf90b9da1@groessler.org> @ 2019-07-04 19:10 ` Christian Groessler 2019-07-04 19:19 ` Ralph Seichter ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Christian Groessler @ 2019-07-04 19:10 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 372 bytes --] Hi, I'm new here. My question is how do I get rid of colors in "emerge", "man" and other command line programs. I managed to do in the shell (bash), but I'm somehow lost how to change it elsewhere. In "vi" I know of "syn off". See attached a pic of an xterm window, which I cannot read easily. (I'm color-blind, so this might enhance the problem.) regards, chris [-- Attachment #2: pic.png --] [-- Type: image/png, Size: 20556 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] How do I get rid of colors (console and xterm)? 2019-07-04 19:10 ` [gentoo-user] How do I get rid of colors (console and xterm)? Christian Groessler @ 2019-07-04 19:19 ` Ralph Seichter 2019-07-04 19:26 ` Christian Groessler 2019-07-04 21:48 ` Grant Taylor 2019-07-05 18:50 ` [gentoo-user] " Nikos Chantziaras 2 siblings, 1 reply; 10+ messages in thread From: Ralph Seichter @ 2019-07-04 19:19 UTC (permalink / raw To: gentoo-user * Christian Groessler: > My question is how do I get rid of colors in "emerge", "man" and other > command line programs. The methods vary between command line tools. You can for example disable the 'manpager' USE flag for sys-apps/man-db. The manual page for emerge mentions different methods (search for "--color"). Depending on the terminal software you use, you might be able to select monochromatic colour profiles (iterm2 for macOS does support this). -Ralph ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] How do I get rid of colors (console and xterm)? 2019-07-04 19:19 ` Ralph Seichter @ 2019-07-04 19:26 ` Christian Groessler 2019-07-04 21:13 ` David Haller 0 siblings, 1 reply; 10+ messages in thread From: Christian Groessler @ 2019-07-04 19:26 UTC (permalink / raw To: gentoo-user Thanks Ralph. In the meanwhile I had found out the "NOCOLORS" setting in make.conf which works for "emerge". man pages in color are the other most important problem right now. I will check out your suggestion. regards, chris On 7/4/19 9:19 PM, Ralph Seichter wrote: > * Christian Groessler: > >> My question is how do I get rid of colors in "emerge", "man" and other >> command line programs. > The methods vary between command line tools. You can for example > disable the 'manpager' USE flag for sys-apps/man-db. The manual page for > emerge mentions different methods (search for "--color"). Depending on > the terminal software you use, you might be able to select monochromatic > colour profiles (iterm2 for macOS does support this). > > -Ralph > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] How do I get rid of colors (console and xterm)? 2019-07-04 19:26 ` Christian Groessler @ 2019-07-04 21:13 ` David Haller 0 siblings, 0 replies; 10+ messages in thread From: David Haller @ 2019-07-04 21:13 UTC (permalink / raw To: gentoo-user Hello, On Thu, 04 Jul 2019, Christian Groessler wrote: >On 7/4/19 9:19 PM, Ralph Seichter wrote: >> * Christian Groessler: >> > My question is how do I get rid of colors in "emerge", "man" and other >> > command line programs. >> The methods vary between command line tools. You can for example >> disable the 'manpager' USE flag for sys-apps/man-db. The manual page for >> emerge mentions different methods (search for "--color"). Depending on >> the terminal software you use, you might be able to select monochromatic >> colour profiles (iterm2 for macOS does support this). > >In the meanwhile I had found out the "NOCOLORS" setting in make.conf which >works for "emerge". Your term looks rather low contrast with that rather bright dark greenish background... I use 'grey5' ;) You can also adjust the colours see 'man 5 color.map' and /etc/portage/color.map. And/or even patch emerge's output routines (I think there's some stuff that has no variable in color.map, and which is hard to read on grey5). I use this: ==== /etc/portage/patches/sys-apps/portage/portage_output_colors-2.3.44.patch ==== diff -x '*~' -purN a/lib/portage/output.py b/lib/portage/output.py --- a/lib/portage/output.py 2017-12-16 01:48:01.000000000 +0100 +++ b/lib/portage/output.py 2017-12-16 05:54:28.701929379 +0100 @@ -100,8 +115,8 @@ codes["darkgreen"] = codes["0x00AA00"] codes["yellow"] = codes["0xFFFF55"] codes["brown"] = codes["0xAA5500"] -codes["blue"] = codes["0x5555FF"] -codes["darkblue"] = codes["0x0000AA"] +codes["blue"] = esc_seq + "36;1m" # codes["0x5555FF"] +codes["darkblue"] = esc_seq + "36m" # codes["0x0000AA"] codes["fuchsia"] = codes["0xFF55FF"] codes["purple"] = codes["0xAA00AA"] ==== >man pages in color are the other most important problem right now. I will >check out your suggestion. AFAIK that mostly depends on what you use as pager for man, e.g. less. ==== Controlling formatted output -P pager, --pager=pager Specify which output pager to use. By default, man uses less -s. This option overrides the $MANPAGER environment variable, which in turn overrides the $PAGER environment variable. It is not used in conjunction with -f or -k. ==== So, have a look at the MANPAGER and PAGER variables if they're set. If they are, have a look at the config of that pager, else at that of 'less(1)'. Oh, and have a look at your terminal options. E.g. use 'xterm -cm' instead of 'xterm'... (or set the according Xresource) and all you get is black & white ;) HTH, -dnh -- # Mmm, yesssss. cookies my preciousssss! Mmm, yes downloads it # is! We mustn't have nasty little gmakeses deleting our # precious cookieses now must we? -- gar.lib.mk of 'konstruct' ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] How do I get rid of colors (console and xterm)? 2019-07-04 19:10 ` [gentoo-user] How do I get rid of colors (console and xterm)? Christian Groessler 2019-07-04 19:19 ` Ralph Seichter @ 2019-07-04 21:48 ` Grant Taylor 2019-07-05 8:19 ` wiicontroller 2019-07-05 18:50 ` [gentoo-user] " Nikos Chantziaras 2 siblings, 1 reply; 10+ messages in thread From: Grant Taylor @ 2019-07-04 21:48 UTC (permalink / raw To: gentoo-user On 7/4/19 1:10 PM, Christian Groessler wrote: > Hi, Hi, > I'm new here. My question is how do I get rid of colors in "emerge", > "man" and other command line programs. I managed to do in the shell > (bash), but I'm somehow lost how to change it elsewhere. In "vi" I know > of "syn off". Try changing your terminal type (TERM environment variable) to something that doesn't support color. I'd suggest VT100. Try the following in a terminal session and see if that helps. export TERM=vt100 > See attached a pic of an xterm window, which I cannot read easily. (I'm > color-blind, so this might enhance the problem.) You can also redefine the colors in XTerm so that anything that thinks it's using a given color number is actually using whatever RGB value you set. Thus you can alter the colors to whatever you want. -- Grant. . . . unix || die ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] How do I get rid of colors (console and xterm)? 2019-07-04 21:48 ` Grant Taylor @ 2019-07-05 8:19 ` wiicontroller 0 siblings, 0 replies; 10+ messages in thread From: wiicontroller @ 2019-07-05 8:19 UTC (permalink / raw To: gentoo-user XTerm also includes a -cm option (colorMode resource) for ignoring control sequences that affect color. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: How do I get rid of colors (console and xterm)? 2019-07-04 19:10 ` [gentoo-user] How do I get rid of colors (console and xterm)? Christian Groessler 2019-07-04 19:19 ` Ralph Seichter 2019-07-04 21:48 ` Grant Taylor @ 2019-07-05 18:50 ` Nikos Chantziaras 2019-07-08 8:18 ` Christian Groessler 2 siblings, 1 reply; 10+ messages in thread From: Nikos Chantziaras @ 2019-07-05 18:50 UTC (permalink / raw To: gentoo-user On 04/07/2019 22:10, Christian Groessler wrote: > I'm new here. My question is how do I get rid of colors in "emerge", > "man" and other command line programs. Do you want to disable colors for everything, or only for specific tools? ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: How do I get rid of colors (console and xterm)? 2019-07-05 18:50 ` [gentoo-user] " Nikos Chantziaras @ 2019-07-08 8:18 ` Christian Groessler 2019-07-08 15:47 ` Grant Taylor 2019-07-22 19:38 ` Christian Groessler 0 siblings, 2 replies; 10+ messages in thread From: Christian Groessler @ 2019-07-08 8:18 UTC (permalink / raw To: gentoo-user On 7/5/19 8:50 PM, Nikos Chantziaras wrote: > On 04/07/2019 22:10, Christian Groessler wrote: >> I'm new here. My question is how do I get rid of colors in "emerge", >> "man" and other command line programs. > > Do you want to disable colors for everything, or only for specific tools? Ideally for everything inside an xterm or console screen. I'm going to try "-cm" for xterm. Thanks David (in a previous post) for the suggestion. regards, chris ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: How do I get rid of colors (console and xterm)? 2019-07-08 8:18 ` Christian Groessler @ 2019-07-08 15:47 ` Grant Taylor 2019-07-22 19:38 ` Christian Groessler 1 sibling, 0 replies; 10+ messages in thread From: Grant Taylor @ 2019-07-08 15:47 UTC (permalink / raw To: gentoo-user On 7/8/19 2:18 AM, Christian Groessler wrote: > Ideally for everything inside an xterm or console screen. I'm going to > try "-cm" for xterm. Thanks David (in a previous post) for the suggestion. If the -cm command line option does what you want, you can easily add the following to the ~/.Xdefaults file, reread it, and be good to go. xterm.vt100*colorMode: false Reread the file via "xrdb ~/.Xdefaults" or logout & back in. -- Grant. . . . unix || die ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: How do I get rid of colors (console and xterm)? 2019-07-08 8:18 ` Christian Groessler 2019-07-08 15:47 ` Grant Taylor @ 2019-07-22 19:38 ` Christian Groessler 1 sibling, 0 replies; 10+ messages in thread From: Christian Groessler @ 2019-07-22 19:38 UTC (permalink / raw To: gentoo-user On 7/8/19 10:18 AM, Christian Groessler wrote: > On 7/5/19 8:50 PM, Nikos Chantziaras wrote: >> On 04/07/2019 22:10, Christian Groessler wrote: >>> I'm new here. My question is how do I get rid of colors in "emerge", >>> "man" and other command line programs. >> >> Do you want to disable colors for everything, or only for specific >> tools? > > > Ideally for everything inside an xterm or console screen. I'm going to > try "-cm" for xterm. Thanks David (in a previous post) for the > suggestion. "-cm" works fine, thanks. Console is not that important since I'm rarely sitting there. regards, chris ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-07-22 19:38 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <d27fb9e6-dd78-99dd-76ce-b9aaf90b9da1@groessler.org> 2019-07-04 19:10 ` [gentoo-user] How do I get rid of colors (console and xterm)? Christian Groessler 2019-07-04 19:19 ` Ralph Seichter 2019-07-04 19:26 ` Christian Groessler 2019-07-04 21:13 ` David Haller 2019-07-04 21:48 ` Grant Taylor 2019-07-05 8:19 ` wiicontroller 2019-07-05 18:50 ` [gentoo-user] " Nikos Chantziaras 2019-07-08 8:18 ` Christian Groessler 2019-07-08 15:47 ` Grant Taylor 2019-07-22 19:38 ` Christian Groessler
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox