mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
vidcontrol: Disallow -i mode with vt(4)
vt(4) does not (currently) support changing the video mode. Report that -i mode is not supported rather than printing an empty list. PR: 207411 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58163
This commit is contained in:
1 parent
29d1a3248a
commit
c3e38c0093
1 file changed
+5
-2
@@ -182,7 +182,7 @@ usage(void)
|
||||
if (vt4_mode)
|
||||
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
|
||||
"usage: vidcontrol [-Cx] [-b color] [-c appearance] [-f [[size] file]]",
|
||||
" [-g geometry] [-h size] [-i active | adapter | mode]",
|
||||
" [-g geometry] [-h size] [-i active | adapter]",
|
||||
" [-M char] [-m on | off]",
|
||||
" [-r foreground background] [-S on | off] [-s number]",
|
||||
" [-T xterm | cons25] [-t N | off] [mode]",
|
||||
@@ -1206,7 +1206,10 @@ show_info(char *arg)
|
||||
} else if (!strcmp(arg, "adapter")) {
|
||||
show_adapter_info();
|
||||
} else if (!strcmp(arg, "mode")) {
|
||||
show_mode_info();
|
||||
if (vt4_mode)
|
||||
warnx("-i mode is not supported by vt(4)");
|
||||
else
|
||||
show_mode_info();
|
||||
} else {
|
||||
revert();
|
||||
errx(1, "argument to -i must be active, adapter, or mode");
|
||||
|
||||
Reference in new issue
Block a user