0

I have installed Babun http://babun.github.io/ on Windows

I think I would like to use the (default) "babun" theme, as it has good stuff like git branch names etc.

I would prefer a black-on-white colour scheme to a white-on-black scheme though.

I have changed the background colour to white and the foreground colour to black in the "looks" options menu on the terminal emulator window, which has gotten me 90% of the way there.

Unfortunately, now yellow text is unreadable as the yellow was presumably chosen by the "babun" theme to be readable on a black background, so is too pale.

How can I fix this?

I have been reading the babun docs and poking about in my ~/.* files for a while, but I haven't managed to figure this out :-(

2 Answers 2

0
+50

Babun already incorporates the terminal I was going to suggest you install (mintty), which implements more recently supported than PuTTYcyg, which implements a PuTTY wishlist item. IMHO, this is easily the best terminal emulator available for Windows. (Actually, it appears the Cygwin community has also concluded this; is mintty now the default for Cygwin too? Nice!)

Any reasonable terminal emulator will let you change its colors. In mintty, it's in the "Looks" section:

mintty options dialog

I can't say I've ever used mintty or Babun, but presumably one of those buttons has what you're looking for. (The above image was taken from the babun website.)

See also this Stack Overflow question on changing colors in Cygwin terminals, which among many answers for different terminal emulators (including CMD.exe, which I strongly advise against), has an answer for rxvt, where you'd want a line in ~/.Xdefaults that says Rxvt*color3: #eeaa11

Update: The "Color Scheme Designer" button goes to a website of some sort and the Theme drop-down may initially be empty. There's a nice 4bit Terminal Color Scheme Designer out there (possibly even the destination of that button?) which can be used to create a theme.

To save you the effort, I've created a very basic theme, which I believe you merely need to add to your ~/.minttyrc file (which may not yet exist):

BackgroundColour=255,255,255
ForegroundColour=0,0,0
CursorColour=0,0,0
Black=0,0,0
BoldBlack=38,38,38
Red=255,51,102
BoldRed=255,153,179
Green=102,255,51
BoldGreen=179,255,153
Yellow=255,204,51
BoldYellow=255,230,153
Blue=51,102,255
BoldBlue=153,179,255
Magenta=204,51,255
BoldMagenta=230,153,255
Cyan=51,255,204
BoldCyan=153,255,230
White=217,217,217
BoldWhite=255,255,255

(I created this with Dye = color, Background = bright_white, Foreground = black, then Hue was moved from the center half way to the left extreme and Saturation was maxed out to the right.)

You can use the "Foreground" button's color selector to refine the Red, Green, and Blue channels from the above Yellow or BoldYellow as desired. Update the corresponding line in ~/.minttyrc and hit "Cancel" in that color selector (or else your default color would become that yellow).

I assume changes will require starting a fresh instance of the terminal. It's possible that they actually require resetting some sort of ~daemon, in which case you might have to reboot (though I doubt it).

4
  • Thanks. I have that "Options" dialog, yes. Clicking "color scheme designer" takes me to a website. I don't want to spend ages "designing" a color scheme, I just want some text I can paste into a config file, and instructions on where to paste it. I can't be the only one who wants a white-on-black terminal.
    – Rich
    Commented Sep 26, 2017 at 19:09
  • Okay, based on your response, I assume the "Foreground" and "Background" buttons lead to color selectors for the main fg/bg colors rather than the 8×2 basic terminal colors. Assuming the "Theme" drop-down doesn't have an acceptable option, you will indeed have to create one. I'll create one and update my post.
    – Adam Katz
    Commented Sep 26, 2017 at 19:34
  • Thanks! That works fine for me. Light yellow is still barely readable, but it is better.
    – Rich
    Commented Sep 28, 2017 at 11:09
  • All you have to do is revise the BoldYellow line above using values determined by the "Foreground" button as explained in my answer. Maybe try Yellow=221,156,29 and BoldYellow=255,204,51 for example.
    – Adam Katz
    Commented Sep 28, 2017 at 14:50
0

In addition to Adam's answer, there is a nice colour scheme designer at https://terminal.sexy/

Here's "google.light" but with black set to black instead of dark grey (put this text in ~/.minttyrc):

BackgroundColour=255,255,255
ForegroundColour=0,0,0
CursorColour=0,0,0
Black=29,31,33
BoldBlack=150,152,150
Red=204,52,43
BoldRed=204,52,43
Green=25,136,68
BoldGreen=25,136,68
Yellow=251,169,34
BoldYellow=251,169,34
Blue=57,113,237
BoldBlue=57,113,237
Magenta=163,106,199
BoldMagenta=163,106,199
Cyan=57,113,237
BoldCyan=57,113,237
White=197,200,198
BoldWhite=255,255,255

Other settings

You probably also want to do:

echo "set background=light" >> ~/.vimrc

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .