Re: White fg color, black bg color, though terminal is opposite in MSYS2
Ivan Vorontsov <[email protected]> Tue, 1 Oct 2024 12:54:27 +0300
| Newsgroups | gmane.editors.nano.general |
|---|---|
| Message-ID | <ZvvG0_aCWJQ8IMQ1@DESKTOP-97PAREG> |
On Mon, Sep 30, 2024 at 04:57:23PM +0200, Benno Schulenberg wrote: > > Op 30-09-2024 om 15:10 schreef Ivan Vorontsov: > > I use MSYS2 system on Windows 10. For quite some time (let's suppose year) > > I used system without update. I used nano as well. Version 7.2 > > particularly. Terminal in MSYS2 is called mintty. It supports themes. I use > > theme called kohlrausch. It is bright theme with white bg and black fg. > > > > All was good before I decided to update. Nano draws black bg and white fg > > now, which is not what I want. > > You're not saying to which version of nano you upgraded. > I'm assuming from 7.2 to 8.2, right? Yes. 8.2 > Did you compile nano yourself? If yes, then try commenting out > these two lines in src/rcfile.c: > > else if (red == green && green == blue && 0 < red && red < 0xF) > return 232 + gray[red - 1]; > > That is the only color-related change I could find since 7.2. > > With those lines commented out, does nano then again follow the > terminal's theme? Didn't help. I installed nano supplied by MSYS2. I built it myself. I built 7.2 version. Result is the same, white on black. Now I think it's not nano problem.