Page MenuHomeFreeBSD

vt(4): CONS_HISTORY/CONS_CLRHIST should operate on issuing terminal
ClosedPublic

Authored by jah on Jul 4 2020, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 22 2024, 6:17 PM
Unknown Object (File)
Dec 20 2023, 2:18 AM
Unknown Object (File)
Dec 2 2023, 5:59 AM
Unknown Object (File)
Nov 5 2023, 12:49 PM
Unknown Object (File)
Oct 9 2023, 4:56 PM
Unknown Object (File)
Sep 5 2023, 5:03 AM
Unknown Object (File)
Sep 5 2023, 4:59 AM
Unknown Object (File)
Sep 5 2023, 4:58 AM
Subscribers

Details

Summary

Currently the CONS_HISTORY and CONS_CLRHIST ioctls modify the state of the
active terminal instead of the terminal against which the ioctl was issued.
Because of the way vidcontrol(1) works, these are the same in most cases.
But a poorly-timed window switch can make them differ. This is reproducible
by issuing e.g. 'vidcontrol -s 2 && vidcontrol -C' to switch from vty 1 to
vty 2; teken will reset the cursor position on vty 1 but vt(4) will clear
the history buffer of vty 2, producing an interesting state of affairs.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32139
Build 29650: arc lint + arc unit