9front - general discussion about 9front
 help / color / mirror / Atom feed
* vt(1) avoid white cursor on white background
@ 2018-10-18 18:33 Xiao-Yong Jin
  0 siblings, 0 replies; only message in thread
From: Xiao-Yong Jin @ 2018-10-18 18:33 UTC (permalink / raw)
  To: 9front

This patch makes the cursor visible on white background.

diff -r 4c1c90cb3a47 sys/src/cmd/vt/main.c
--- a/sys/src/cmd/vt/main.c	Tue Oct 16 12:53:55 2018 -0700
+++ b/sys/src/cmd/vt/main.c	Thu Oct 18 13:30:08 2018 -0500
@@ -313,7 +313,7 @@
 
 	red = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DRed);
 	green = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DGreen);
-	bordercol = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xCCCCCCCC);
+	bordercol = allocimage(display, Rect(0,0,1,1), screen->chan, 1, blkbg ? 0xCCCCCCCC : 0x333333CC);
 	highlight = allocimage(display, Rect(0,0,1,1), CHAN1(CAlpha,8), 1, 0x80);
 
 	for(i=0; i<8; i++){



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-18 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18 18:33 vt(1) avoid white cursor on white background Xiao-Yong Jin

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).