zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: guess what this about
@ 2007-10-29 10:30 Peter Stephenson
  2007-10-29 12:10 ` PATCH: guess what this is about Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2007-10-29 10:30 UTC (permalink / raw)
  To: Zsh hackers list

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@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-30 11:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-29 10:30 PATCH: guess what this about Peter Stephenson
2007-10-29 12:10 ` PATCH: guess what this is about Peter Stephenson
2007-10-29 15:11   ` Seth Kurtzberg
2007-10-30 11:07     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).