nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline a


From: Brand Huntsman
Subject: Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline attributes
Date: Tue, 27 Feb 2018 17:51:07 -0700

On Tue, 27 Feb 2018 18:05:30 -0600
David Ramsey <address@hidden> wrote:

> make it a bit more understandable for those without all of your curses
> knowledge (which, if I had it, I'd have used it to help implement
> 256-color support by now) :)

This is all ansi color, no curses. :)

https://en.wikipedia.org/wiki/ANSI_escape_code

I knew nothing beyond the basic 3x/4x and bold/reverse/underline/reset codes 
until I read that page. Like most things in programming, writing the patches 
forced me to learn.


> > Did you switch your 256-color terminal to an 88-color TERM value?
> 
> Yes, and I didn't know it was this problematic.  So I'd have to start
> the terminal with, say TERM=xterm-88color in order to test it
> properly, instead of setting it after the fact?  Or do I just build
> urxvt with only 88-color support, as you mention below, and test it
> with that?

The attached script will display the entire color palette. The last block of 
colors should always be grayscale. You have a broken TERM value if it is all 
blue/green colors. If you run it in a real 256 term and a 256 term pretending 
to be an 88 term, you will see that every color in the 88 term is in the first 
two blocks on the 256 term.

Attachment: colors.sh
Description: application/shellscript


reply via email to

[Prev in Thread] Current Thread [Next in Thread]