bugGNU nano - Bugs: bug #24128, [Request] add nanorc support to...


bug #24128: [Request] add nanorc support to win32 platform

Submitted by:  Chris Allegretta <astyanax>
Submitted on:  Sun 24 Aug 2008 07:19:21 PM UTC  
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: In Progress
Privacy: PublicAssigned to: Chris Allegretta <astyanax>
Open/Closed: OpenRelease: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sat 01 Aug 2015 06:17:52 AM UTC, comment #5:

Regrettably, I must retract the idea from comment #4 that cmd.exe differs between Windows 7 and Windows XP SP3.

In both Windows versions, cmd.exe suffices for testing the syntax highlighting functionality of a Win32 build of GNU nano (as I extracted it from Cygwin).

In both, GNU nano successfully displays color syntax highlighting (for a file, `something.css').

Interestingly in both, when I copy some text to the console, preceded by the ANSI color sequence for red (using the `type' command) then I see the ANSI color character sequence—but not the color. (When I do the same from ConEmu I see the color. And I am aware the ANSI color sequence for red is the ASCII Escape character followed by `[31m'.)

Therefore I conclude something sophisticated happens in one of the libraries (I would suppose) provided by Cygwin, which enables GNU nano to show colors.

Mark D. Blackwell <markdblackwell>
Sat 01 Aug 2015 03:54:19 AM UTC, comment #4:

I must offer a correction, regarding cmd.exe and the standard ANSI strings for displaying color.

If a Windows 7 system were available to anyone, testing the workings of nanorc using ANSI color wouldn't necessitate installing the program, ConEMU.

Instead, the cmd.exe in Windows 7 would be sufficient.

Just now, I tested cmd.exe in various versions of Windows systems, and discovered the following:

  • On Windows XP SP3, cmd.exe fails to show any ANSI colors; but
  • On Windows 7, cmd.exe successfully shows ANSI colors, including from a running GNU nano (as I extracted it from Cygwin).
Mark D. Blackwell <markdblackwell>
Fri 31 Jul 2015 08:48:00 PM UTC, comment #3:

Regarding the syntax highlighting part of nanorc's functionality on Win32: as you may know, neither cmd.exe nor ConsoleZ show ANSI color.

Since GNU nano's syntax highlighting is in color, starting GNU nano from cmd.exe or ConsoleZ won't show it.

However, starting GNU nano from ConEmu:


enables GNU nano to show ANSI color.

Likely, this Windows environment variable must be set:


and possibly these:

LANG : en_US.UTF-8
TERM : cygwin

Mark D. Blackwell <markdblackwell>
Sat 14 Jun 2014 08:26:54 PM UTC, comment #2:

Has this been done? Is it still in progress? Has it stalled?

Benno Schulenberg <bens>
Project Member
Thu 28 Aug 2008 06:13:51 AM UTC, comment #1:

Started this work in r4314. I need to get access to a win32 machine to see if it even worked :/

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Sun 24 Aug 2008 07:19:21 PM UTC, original submission:

This should be fairly trivial, though include file syntax might be interesting. Regardless adding support for a monolithing nanorc on win32 (looking for something like nano.rc instead) shoudl be fairly trivial.

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by markdblackwell (Posted a comment)
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by astyanax (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 Jun 2014 08:26:54 PM UTCbensSummaryAdd nanorc support to win32 platform=>[Request] add nanorc support to win32 platform
    Thu 28 Aug 2008 06:13:51 AM UTCastyanaxStatusNone=>In Progress

    Back to the top

    Powered by Savane 3.1-cleanup