From owner-freebsd-current@FreeBSD.ORG Sun Sep 14 00:40:35 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 A207EA1E for ; Sun, 14 Sep 2014 00:40:35 +0000 (UTC) Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3947DD33 for ; Sun, 14 Sep 2014 00:40:34 +0000 (UTC) X-AuditID: 1209190d-f79c06d000006f95-f1-5414e2ce8e13 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id 0D.DD.28565.EC2E4145; Sat, 13 Sep 2014 20:35:26 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s8E0ZPei017894; Sat, 13 Sep 2014 20:35:26 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s8E0ZNF3019875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 13 Sep 2014 20:35:25 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id s8E0ZNb2011191; Sat, 13 Sep 2014 20:35:23 -0400 (EDT) Date: Sat, 13 Sep 2014 20:35:23 -0400 (EDT) From: Benjamin Kaduk X-X-Sender: kaduk@multics.mit.edu To: Marcin Cieslak Subject: Re: Teach vidcontrol(1) and vt(4) to restore default font In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkleLIzCtJLcpLzFFi42IRYrdT0T33SCTE4MssVYs5bz4wWXx/dYzd gcljxqf5LB4zGpsYA5iiuGxSUnMyy1KL9O0SuDKeLmtjLGhjrZi87DhzA+NH5i5GDg4JAROJ vv+JXYycQKaYxIV769m6GLk4hARmM0mcu3iSFcLZyCixY8lWRgjnEJPE1r3r2EFahAQaGCWm LssBmcQioC1x64ACSJhNQE1i/YprzBBTFSU2n5oEZosIqEq8ed8AZjMLyEtsWT2ZDcQWFnCS mLVhDZjNKWAv0Xz+IZjNK+Aose9mK9QqO4mGDVfAekUFdCRW75/CAlEjKHFy5hMWiJlaEsun b2OZwCg0C0lqFpLUAkamVYyyKblVurmJmTnFqcm6xcmJeXmpRbpGermZJXqpKaWbGEHhyynJ u4Px3UGlQ4wCHIxKPLwrLgqHCLEmlhVX5h5ilORgUhLlZbwuEiLEl5SfUpmRWJwRX1Sak1p8 iFGCg1lJhHfxdqAcb0piZVVqUT5MSpqDRUmcd9MPvhAhgfTEktTs1NSC1CKYrAwHh5IE79aH QI2CRanpqRVpmTklCGkmDk6Q4TxAw91BaniLCxJzizPTIfKnGI05Wpre9jJxrOv81s8kxJKX n5cqJc7bB1IqAFKaUZoHNw2Wgl4xigM9J8y78R5QFQ8wfcHNewW0iglo1bs5QiCrShIRUlIN jEsvCKkc9nHmNnodylBUdijUc/dPOa61//uVp5/9GL4qtDVqzxnFk5XrHp269shq/VejdRnz 4/4VsQYs52oqzb7iYh78ddK3zzL/I7cu5TjQJ6fh2KGw/Fr0Pv2Y0o0WFpapikfqN/ipfPr7 sSj2eqvEtzK5fs33Z0RlVs5LubLy06cbe+vrnJRYijMSDbWYi4oTAS4UkKYcAwAA Cc: freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 14 Sep 2014 00:40:35 -0000 On Sat, 13 Sep 2014, Marcin Cieslak wrote: > Hello, > > I tried loading gallant.fnt which I did not > like and I was wondering how to come back to > the nice default font. > > There does not seem to be the way to do this, > so please find below a simple patch to add > this functionality. > > It adds a new ioctl PIO_VDFFONT to the vt(4) > driver. I hope I got the reference counting > on the vt_font_default structure right. > > With this patch applied, "vidcontrol -f" restores > the built-in font. Can you please submit this to our bug tracker so it doesn't get lost? https://bugs.freebsd.org/submit Thanks, Ben