]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vt(4): reset scrollback and cursor position after clearing history buffer
authorJason A. Harmening <jah@FreeBSD.org>
Tue, 2 Jun 2020 01:21:48 +0000 (01:21 +0000)
committerJason A. Harmening <jah@FreeBSD.org>
Tue, 2 Jun 2020 01:21:48 +0000 (01:21 +0000)
commitef1eabca5d6b0b998490d328b2e99f8f19a7569d
tree76b963c519293ac33783e2d3ec1c85046b643f2d
parentec45be6c36dcb373103014e16a3623e0c182a5bb
vt(4): reset scrollback and cursor position after clearing history buffer

r361601 implemented basic support for cleaing the console history buffer.
But after clearing the history buffer, it's not especially useful to be
able to scroll back through that buffer, or for the cursor position to
remain at (very likely) the bottom of the screen.

PR: 224436
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D25079
sys/dev/vt/vt_buf.c
sys/dev/vt/vt_core.c
sys/kern/subr_terminal.c