mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
vidcontrol: disable p, P, and H when vt(4) is in use
These options use the CONS_SCRSHOT ioctl to capture the contents of the current console, which is not yet supported by vt(4). Disable the options when vt(4) is in use rather than emitting a possibly confusing error message. This change should be reverted if CONS_SCRSHOT is implemented for vt(4). PR: 263099 MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
8af2421956
commit
c71ae91f19
|
@ -186,7 +186,7 @@ usage(void)
|
|||
{
|
||||
if (vt4_mode)
|
||||
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
|
||||
"usage: vidcontrol [-CHPpx] [-b color] [-c appearance] [-f [[size] file]]",
|
||||
"usage: vidcontrol [-Cx] [-b color] [-c appearance] [-f [[size] file]]",
|
||||
" [-g geometry] [-h size] [-i active | adapter | mode]",
|
||||
" [-M char] [-m on | off]",
|
||||
" [-r foreground background] [-S on | off] [-s number]",
|
||||
|
@ -1439,7 +1439,7 @@ main(int argc, char **argv)
|
|||
dumpopt = DUMP_FBF;
|
||||
termmode = NULL;
|
||||
if (vt4_mode)
|
||||
opts = "b:Cc:fg:h:Hi:M:m:pPr:S:s:T:t:x";
|
||||
opts = "b:Cc:fg:h:i:M:m:r:S:s:T:t:x";
|
||||
else
|
||||
opts = "b:Cc:deE:fg:h:Hi:l:LM:m:pPr:S:s:T:t:x";
|
||||
|
||||
|
|
Loading…
Reference in a new issue