[Top][All Lists]

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

[Nano-devel] [PATCH] extended color support

From: Brand Huntsman
Subject: [Nano-devel] [PATCH] extended color support
Date: Sun, 21 Jan 2018 01:55:15 -0700

Adds bold, italic, reverse and underline attributes. Adds non-portable index 
colors from 0 to number_of_terminal_colors-1, will fail if the index is greater 
than what the terminal supports. Adds #RGB and #RRGGBB colors that map to the 
available colors. Any RGB color can be used but the attached rgb-colors file 
shows the most portable values. Should that file be in the source/docs?

color <attributes,...>,fg,bg "regex"

While testing, I discovered that the A_BANDAID=A_PROTECT hack causes problems 
when a syntax has more than 256 color pairs. Any color pair beyond 256 gets 
random attributes and colors. So try to keep nano's default syntax files under 
that limit. :)

Attachment: 0001-bold-italic-reverse-and-underline-color-attributes.patch
Description: Text Data

Attachment: 0002-index-colors.patch
Description: Text Data

Attachment: 0003-RGB-colors.patch
Description: Text Data

Attachment: 0004-prevent-end-of-line-comments-from-highlighting-RGB-colors.patch
Description: Text Data

Attachment: rgb-colors
Description: Binary data

reply via email to

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