Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2014 12:12:47 +0100
From:      Claude Buisson <clbuisson@orange.fr>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: vt text cursor invisible in reverse video
Message-ID:  <5335592F.2010301@orange.fr>
In-Reply-To: <53355335.6040505@orange.fr>
References:  <53355335.6040505@orange.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020706060109020803030303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 03/28/2014 11:47, Claude Buisson wrote:
> Hi !
>
> FreeBSD 11.0-CURRENT #0 r260577M: Sat Jan 18 17:31:37 CET 2014
>       toor@fidel:/home/obj/home/src/sys/ADELE11X i386
>
> In console/text mode, the vt(4) cursor disappears when the application switches
> to reverse video, e.g. when exiting and saving a file edited with nano.
>
> I use the attached patch.

Sending again after renaming the patch to get a text/plain Content Encoding
(Thunderbird uses text/x-csrc with a filename="patch-vt_core.c")


>
> CBu
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>


--------------020706060109020803030303
Content-Type: text/plain; charset=ISO-8859-15;
 name="patch-vt_core"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="patch-vt_core"

--- sys/dev/vt/vt_core.c.orig	2013-12-26 15:25:37.000000000 +0100
+++ sys/dev/vt/vt_core.c	2014-03-22 13:44:54.000000000 +0100
@@ -667,8 +667,11 @@
 	}

 	if (cursor) {
+		term_color_t tmp;
+
+		tmp = *fg;
 		*fg = *bg;
-		*bg = TC_WHITE;
+		*bg = tmp;
 	}
 }


--------------020706060109020803030303--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5335592F.2010301>