From 272ad10c66d236209624752a22cce70b7d1f7e49 Mon Sep 17 00:00:00 2001 From: dumbbell Date: Fri, 31 Oct 2014 23:10:58 +0000 Subject: vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font To restore the default font using vidcontrol(1), use the "-f" flag without an argument: vidcontrol -f < /dev/ttyv0 PR: 193910 Differential Revision: https://reviews.freebsd.org/D971 Submitted by: Marcin Cieslak Reviewed by: ray@, emaste@ Approved by: ray@ MFC of: r273544 --- sys/dev/vt/vt_core.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 396c0b1..eeea18f 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -2211,6 +2211,11 @@ skip_thunk: vtfont_unref(vf); return (error); } + case PIO_VFONT_DEFAULT: { + /* Reset to default font. */ + error = vt_change_font(vw, &vt_font_default); + return (error); + } case GIO_SCRNMAP: { scrmap_t *sm = (scrmap_t *)data; -- cgit v1.1