vt text cursor invisible in reverse video

Claude Buisson clbuisson at orange.fr
Fri Mar 28 11:12:50 UTC 2014


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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>

-------------- next part --------------
--- 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;
 	}
 }



More information about the freebsd-current mailing list