Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: guess what this about



Solaris 8 curses doesn't support color; this currently causes a
segmentation violation.

I'm also having problems with borders and timeouts on the same system
which I may look at at some point.

Index: Src/Modules/curses.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/curses.c,v
retrieving revision 1.29
diff -u -r1.29 curses.c
--- Src/Modules/curses.c	28 Oct 2007 20:28:31 -0000	1.29
+++ Src/Modules/curses.c	29 Oct 2007 10:28:14 -0000
@@ -268,6 +268,10 @@
     short f, b;
     Colorpairnode cpn;
 
+    /* zcurses_colorpairs is only initialised if color is supported */
+    if (!zcurses_colorpairs)
+	return 1;
+
     if (zc_color_phase==1 ||
 	!(cpn = (Colorpairnode) gethashnode(zcurses_colorpairs, colorpair))) {
 	zc_color_phase = 2;


-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author