This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[Patch]: Ncurses frame drawing
- From: Micha Nelissen <M dot Nelissen at student dot tue dot nl>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 13 Oct 2003 18:38:42 +0200
- Subject: [Patch]: Ncurses frame drawing
Hi,
Attached is a patch to enable correct ncurses frame drawing. It does so
by implementing the escape sequence for 'start/end alternate charset'.
This is code \E[11m and \E[10m respectively in the linux termcap.
Regards,
Micha.
Index: fhandler_console.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_console.cc,v
retrieving revision 1.115
diff -u -w -r1.115 fhandler_console.cc
--- fhandler_console.cc 27 Sep 2003 02:36:50 -0000 1.115
+++ fhandler_console.cc 13 Oct 2003 16:31:13 -0000
@@ -1111,6 +1111,12 @@
case 9: /* dim */
dev_state->intensity = INTENSITY_DIM;
break;
+ case 10: /* end alternate charset */
+ current_codepage = ansi_cp;
+ break;
+ case 11: /* start alternate charset */
+ current_codepage = oem_cp;
+ break;
case 24:
dev_state->underline = FALSE;
break;
2003-10-13 Micha Nelissen <M.Nelissen@student.tue.nl>
* fhandler_console.cc (char_command): added escape sequence for codepage
ansi <-> oem switching for ncurses frame drawing capabilities.