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 Aug 24 19:19:21 2008  
Severity: 2 - MinorStatus: In Progress
Assigned to: Chris Allegretta <astyanax>Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sat Aug 1 06:17:52 2015, 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 Aug 1 03:54:19 2015, 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 Jul 31 20:48:00 2015, 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 Jun 14 20:26:54 2014, comment #2:

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

Benno Schulenberg <bens>
Project Administrator
Thu Aug 28 06:13:51 2008, 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 Aug 24 19:19:21 2008, 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 Jun 14 20:26:54 2014bensSummaryAdd nanorc support to win32 platform=>[Request] add nanorc support to win32 platform
    Thu Aug 28 06:13:51 2008astyanaxStatusNone=>In Progress

    Back to the top

    Powered by Savane 3.1-cleanup1