Hi.
Not sure, if community is interested in subj, but...
I'm developer of ConEmu (Windows Console Emulator) wich supports xterm 256
color extension of ANSI X3.64.
http://code.google.com/p/conemu-maximus5/wiki/Screenshots#ANSI_X3.64_and_xterm_256_colors_in_ConEmu
Vim "from the box" does not supports ansi codes, so small patch was created.
I'm not using Vim and have only superficial knowledge about it. So, this patch
may be not perfect or not complete.
Any comments? Are here windows developers, interested in this feature?
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Index: os_win32.c
===================================================================
--- os_win32.c (revision 586)
+++ os_win32.c (working copy)
@@ -4216,6 +4216,28 @@
}
#endif
}
+ else if (s[0] == ESC && len >= 9 && s[1] == '[' && (s[2] == '3' || s[2] == '4') && s[3] == '8' && s[4] == ';' && s[5] == '5' && s[6] == ';')
+ {
+ //ESC [ 48 ; 5 ; clr m
+ //ESC [ 38 ; 5 ; clr m
+ DWORD nWritten = 0;
+ int i, iMax = (len<11)?len:11;
+ for (i = 7; i < iMax; i++)
+ {
+ if (s[i] == 'm')
+ {
+ if (!WriteConsole(g_hConOut, s, i+1, &nWritten, NULL))
+ nWritten = 0;
+ break;
+ }
+ }
+
+ if (!nWritten)
+ nWritten = write_chars(s, 1);
+
+ len -= (nWritten - 1);
+ s += nWritten;
+ }
else
{
/* Write a single character */