Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177741637
D58163.1795176197.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
992 B
Referenced Files
None
Subscribers
None
D58163.1795176197.diff
View Options
Index: usr.sbin/vidcontrol/vidcontrol.c
===================================================================
--- usr.sbin/vidcontrol/vidcontrol.c
+++ 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
Fri, Nov 20, 12:03 PM (7 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41867163
Default Alt Text
D58163.1795176197.diff (992 B)
Attached To
Mode
D58163: vidcontrol: Disallow -i mode with vt(4)
Attached
Detach File
Event Timeline