patchGNU nano - Patches: patch #6873, 256 color support patch

 
 

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

patch #6873: 256 color support patch

Submitted by:  Dave Geering <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

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 Geering <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 Geering <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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    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