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

 
 

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

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

Submitter:  Chris Allegretta <astyanax>
Submitted:  Sun 24 Aug 2008 07:19:21 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

Jump to the original submission

Tue 11 Jul 2017 01:57:48 PM UTC, comment #6: 

From the Mark's comments I conclude that nanorc support on Windows now works, kind of.  The syntax coloring appears to be fragile, but I suppose the setting of options works without problem?  As we're not providing a Windows binary anyhow, I'm closing this.

Benno Schulenberg <bens>
Group administrator
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:

http://conemu.github.io/

enables GNU nano to show ANSI color.

Likely, this Windows environment variable must be set:

  HOME   :   %HOMEPATH%

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>
Group administrator
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>
Group administrator
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>
Group administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by markdblackwell (Posted a comment)
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by astyanax (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-11 bens StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2014-06-14 bens SummaryAdd nanorc support to win32 platform [Request] add nanorc support to win32 platform
    2008-08-28 astyanax StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code