Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164482165
D58163.id182318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
970 B
Referenced Files
None
Subscribers
None
D58163.id182318.diff
View Options
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c
--- a/usr.sbin/vidcontrol/vidcontrol.c
+++ b/usr.sbin/vidcontrol/vidcontrol.c
@@ -182,7 +182,7 @@
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 @@
} 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");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 2, 7:49 AM (5 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34970487
Default Alt Text
D58163.id182318.diff (970 B)
Attached To
Mode
D58163: vidcontrol: Disallow -i mode with vt(4)
Attached
Detach File
Event Timeline
Log In to Comment