From owner-freebsd-current@FreeBSD.ORG Fri Mar 28 11:12:50 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B634E33A for ; Fri, 28 Mar 2014 11:12:50 +0000 (UTC) Received: from smtp.smtpout.orange.fr (smtp12.smtpout.orange.fr [80.12.242.134]) by mx1.freebsd.org (Postfix) with ESMTP id 5A32FD85 for ; Fri, 28 Mar 2014 11:12:48 +0000 (UTC) Received: from localhost ([90.55.174.95]) by mwinf5d35 with ME id izCn1n00D23rjbu03zCnkV; Fri, 28 Mar 2014 12:12:48 +0100 Message-ID: <5335592F.2010301@orange.fr> Date: Fri, 28 Mar 2014 12:12:47 +0100 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: FreeBSD Current Subject: Re: vt text cursor invisible in reverse video References: <53355335.6040505@orange.fr> In-Reply-To: <53355335.6040505@orange.fr> Content-Type: multipart/mixed; boundary="------------020706060109020803030303" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 11:12:50 -0000 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--