diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2014-10-23 12:38:05 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2014-10-23 12:38:05 +0000 |
commit | 525706da8781a6b6adae75c89cb21fff56447cfe (patch) | |
tree | d1ce370969ffeb054fd911ef56d203bea943c112 /sys/dev/vt | |
parent | c0426e480a33dc0cee1e988653a3dd620f2a2f8d (diff) | |
download | FreeBSD-src-525706da8781a6b6adae75c89cb21fff56447cfe.zip FreeBSD-src-525706da8781a6b6adae75c89cb21fff56447cfe.tar.gz |
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 <saper@saper.info>
Reviewed by: ray@, emaste@
Approved by: ray@
MFC after: 1 week
Diffstat (limited to 'sys/dev/vt')
-rw-r--r-- | sys/dev/vt/vt_core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index cad7b31..8c7d0f0 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -2218,6 +2218,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; |