9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Xiao-Yong Jin <meta.jxy@gmail.com>
To: 9front@9front.org
Subject: vt(1) avoid white cursor on white background
Date: Thu, 18 Oct 2018 13:33:41 -0500	[thread overview]
Message-ID: <F4998E4F-A82D-46CA-9DA9-4FFD109F5511@gmail.com> (raw)

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++){



                 reply	other threads:[~2018-10-18 18:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F4998E4F-A82D-46CA-9DA9-4FFD109F5511@gmail.com \
    --to=meta.jxy@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).