1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/sys/dev/vt
Kyle Evans c4a0333b55 vt: restore tty when console is ungrabbed
When a break-to-debugger is triggered, kdb will grab the console and vt(4)
will generally switch back to ttyv0. If one issues a continue from the
debugger, then kdb will ungrab the console and the system rolls on.

This change adds a perhaps minor feature: when we're down to grab == 0 and
if vt actually switched away to ttyv0, switch back to the tty it was
previously on before the console was grabbed.

The justification behind this is that a typical flow is to work in
!ttyv0 to avoid console spam while occasionally dropping to ddb to inspect
system state before returning. This could easily enough be tossed behind
a sysctl or something if it's not generally appreciated, but I anticipate
indifference.

Reviewed by:	ray
Differential Revision:	https://reviews.freebsd.org/D27110
2020-12-31 11:10:11 -06:00
..
colors
font Move font related data structured to sys/font.c and update vtfontcvt 2020-06-14 06:58:58 +00:00
hw Add VT driver for VBE framebuffer device 2020-11-30 08:22:40 +00:00
logo
vt_buf.c vt: clean up empty lines in .c and .h files 2020-09-01 21:47:32 +00:00
vt_consolectl.c
vt_core.c vt: restore tty when console is ungrabbed 2020-12-31 11:10:11 -06:00
vt_cpulogos.c
vt_font.c Move font related data structured to sys/font.c and update vtfontcvt 2020-06-14 06:58:58 +00:00
vt_sysmouse.c
vt.h vt: restore tty when console is ungrabbed 2020-12-31 11:10:11 -06:00