patchGNU nano - Patches: patch #6873, support for 256 colors

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #6873: support for 256 colors

Submitted by:  Dave Lemonby <dreamlax>
Submitted on:  Mon 20 Jul 2009 01:21:54 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: Need InfoPrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: None

Thu 30 Oct 2014 08:15:42 PM UTC, comment #5:

Hello Dave,

I produced the actual diff for comparison with a different 256-colours patch that was submitted recently -- see https://lists.gnu.org/archive/html/nano-devel/2014-10/msg00000.html and the author's comments on yours in https://lists.gnu.org/archive/html/nano-devel/2014-10/msg00034.html

If you wish, please join the discussion on the devel list. I am not hearing any votes or arguments in one direction or the other, so I am holding off on applying any.

Benno Schulenberg <bens>
Project Member
Wed 29 Oct 2014 03:23:16 AM UTC, comment #4:

Hi, sorry for the delay. My account at Savannah was using an old email address, so I didn't get the original notification in April 2014. Is there anything that you would like me to do regarding this patch?

Dave Lemonby <dreamlax>
Tue 21 Oct 2014 07:26:42 PM UTC, comment #3:

Attached is the difference between r4375 and the file posted by Dave, resulting in the patch that I wished to see.

(file #32306)

Benno Schulenberg <bens>
Project Member
Tue 08 Apr 2014 12:59:00 PM UTC, comment #2:

If you are still interested in this feature, could you resubmit this as an actual patch against SVN?

Benno Schulenberg <bens>
Project Member
Mon 20 Jul 2009 01:35:01 AM UTC, comment #1:

Hi,

I forgot to mention, I have tested it using gnome-terminal, konsole, and xterm-256color. For ncurses to determine 256-color eligibility, the TERM environment variable should be set to xterm-256color. Xterm may need to be recompiled with --enable-256color.

Cheers,
Dave.

Dave Lemonby <dreamlax>
Mon 20 Jul 2009 01:21:54 AM UTC, original submission:

Hi,

I've added 256 colour support to nano's RC parser. Colours outside of the standard 16 colours can be used in nano by providing the following format:

# regular style
color green "regex"

# palette style
color 192 "regex"

# RGB style
# components must be between 0 and 5 inclusive.
color 4:5:1 "regex"

# grayscale style
color gray12 "regex"

I have not included any error checking (there is some primitive integer range checking) or terminal capability checking.

Cheers,
Dave

Dave Lemonby <dreamlax>

 

Attached Files
file #32306:  dreamlax-color.patch added by bens (1kB - text/x-diff)
file #18441:  rcfile.c added by dreamlax (29kB - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by dreamlax (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 30 Oct 2014 08:15:42 PM UTCbensSummary256 color support patch=>support for 256 colors
    Tue 21 Oct 2014 07:26:42 PM UTCbensAttached File-=>Added dreamlax-color.patch, #32306
    Tue 08 Apr 2014 12:59:34 PM UTCbensStatusNone=>Need Info
    Mon 20 Jul 2009 01:21:54 AM UTCdreamlaxAttached File-=>Added rcfile.c, #18441

    Back to the top


    Powered by Savane 3.1-cleanup