From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-it1-f174.google.com ([209.85.166.174]) by ewsd; Thu Oct 18 14:33:45 EDT 2018 Received: by mail-it1-f174.google.com with SMTP id l127-v6so2555946ith.1 for <9front@9front.org>; Thu, 18 Oct 2018 11:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=M9QvwyvssyFqcYOWiu8cp0PUeBK6+/vpX85Mb2LckKM=; b=s6BwSKTLBe2/zoFxUmKzRU7EFeedw/qleD3JRGAYKD5LboSEZd7qosK8ikoB6erOT+ PqlvSQXAmg1VKvB28/cOFKd9FRw/uCzlEqxNdaQz8qq8E8jaP+kCCNujEiaNaLhK2drb bvOP+w4I+UB5FVrqKNru3gJDP523Fyk12uoe+F67eagx96Pzz+ieuduA6hHsgsHDkPPM 9bahus/UK5ZDKswnJ+cXGPPGy2taDSM7IZQGrhTHM1I6D7Y1eNRj8wH9WVJMGYVuYa8I /5xnsiUlMpUq7KzTl3V9NiEdjCKsedlJZRMEorK1xvh4kmW+0EXRnYwV0E3EDNu+8S9U 0KoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=M9QvwyvssyFqcYOWiu8cp0PUeBK6+/vpX85Mb2LckKM=; b=SBUE1McqF4zPK17pIntKfYCQ0Sx5Yl5D2h5WphQf6x85jobIyf3+qUc3fPAGVHZXm8 HAXUOImjTM++N7MXSpC+z1bTpQvHIvkRC6GLJ32KiTmnEaTo+tp1ePPW3l0lenTX5zeP 1FoPt+XBD8ZpYESYznil0veIQzYIKimAOEgs0+e/xXJXQfCqftFQ5U/3UHMrDqMpuEcV mXop/eD3gwKUN+dbPY3xIQwI3X3t+xPER6r/uB5YEzw3gDD10hybpPKCMp2IYgl6uoHc oR4N8JE4AjBCrw9ykXItVLNdDfstYcxhQCxLcxrjQg+jvTpIE28cmBTvdxe6n5CNEm3s QLNA== X-Gm-Message-State: ABuFfog2qvaPr0ZHU+HhZqyaSCnNvjxQ0Z2Nml2bYGt7sHrITWEKXZzE L51SJNps5zhOJW/sJVxrutUmZpIM X-Google-Smtp-Source: ACcGV60SmVVADMRPf5VV9J5Z0ATfLF0Ykr8jUO2APGdJ7/mT8mOuFUtHc4cICa51KHMNKM4W1ckIBQ== X-Received: by 2002:a24:a10b:: with SMTP id y11-v6mr1064322ite.148.1539887622670; Thu, 18 Oct 2018 11:33:42 -0700 (PDT) Return-Path: Received: from clswl108.cels.anl.gov ([130.202.148.108]) by smtp.gmail.com with ESMTPSA id o69-v6sm384479itb.4.2018.10.18.11.33.41 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 11:33:42 -0700 (PDT) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: vt(1) avoid white cursor on white background Message-Id: Date: Thu, 18 Oct 2018 13:33:41 -0500 To: 9front@9front.org X-Mailer: Apple Mail (2.3445.100.39) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: advanced shared package-aware out-scaling locator 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 @@ =20 red =3D allocimage(display, Rect(0,0,1,1), screen->chan, 1, = DRed); green =3D allocimage(display, Rect(0,0,1,1), screen->chan, 1, = DGreen); - bordercol =3D allocimage(display, Rect(0,0,1,1), screen->chan, = 1, 0xCCCCCCCC); + bordercol =3D allocimage(display, Rect(0,0,1,1), screen->chan, = 1, blkbg ? 0xCCCCCCCC : 0x333333CC); highlight =3D allocimage(display, Rect(0,0,1,1), = CHAN1(CAlpha,8), 1, 0x80); =20 for(i=3D0; i<8; i++){