From 825aa2d80f26ee904bbe4b53d1fdc3f889dc444b Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Sun, 1 May 2011 17:16:37 +0400 Subject: [PATCH] openvt: Update man-page Signed-off-by: Alexey Gladkov --- man/man1/openvt.1 | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/man/man1/openvt.1 b/man/man1/openvt.1 index 9a58a80..4712547 100644 --- a/man/man1/openvt.1 +++ b/man/man1/openvt.1 @@ -5,7 +5,7 @@ openvt \- start a program on a new virtual terminal (VT). .SH SYNOPSIS .B openvt -[\-c vtnumber] [\-s] [\-u] [\-l] [\-v] [\-\-] command command_options +[\-c vtnumber] [OPTIONS] [\-\-] command .SH DESCRIPTION .B openvt will find the first available VT, and run on it the given @@ -17,37 +17,43 @@ search path ($PATH) is used to find the requested command. If no command is specified then the environment variable $SHELL is used. .SS OPTIONS .TP -.I "\-c vtnumber" +.I "\-c, \-\-console=VTNUMBER" Use the given VT number and not the first available. Note you -must have write access to the supplied VT for this to work. +must have write access to the supplied VT for this to work; .TP -.I "\-f" -Force opening a VT without checking whether it is already in use. +.I "\-f, \-\-force" +Force opening a VT without checking whether it is already in use; .TP -.I "\-e" +.I "\-e, \-\-exec" Directly execute the given command, without forking. This option is meant for use in -.IR /etc/inittab . +.IR /etc/inittab ; .TP -.I "\-s" +.I "\-s, \-\-switch" Switch to the new VT when starting the command. The VT of the new command -will be made the new current VT. +will be made the new current VT; .TP -.I "\-u" +.I "\-u, \-\-user" Figure out the owner of the current VT, and run login as that user. -Suitable to be called by init. Shouldn't be used with \-c or \-l. +Suitable to be called by init. Shouldn't be used with \-c or \-l; .TP -.I "\-l" +.I "\-l, \-\-login" Make the command a login shell. A \- is prepended to the name of the command -to be executed. +to be executed; .TP -.I "\-v" -Be a bit more verbose. +.I "\-v, \-\-verbose" +Be a bit more verbose; .TP -.I "\-w" +.I "\-w, \-\-wait" wait for command to complete. If \-w and \-s are used together then .B openvt -will switch back to the controlling terminal when the command completes. +will switch back to the controlling terminal when the command completes; +.TP +.I "\-V, \-\-version" +print program version and exit; +.TP +.I "\-h, \-\-help" +show this text and exit. .TP .I "\-\-" end of options to @@ -55,7 +61,7 @@ end of options to .SH NOTE If .B openvt -is compiled with a POSIX (GNU) getopt() and you wish to set +is compiled with a getopt_long() and you wish to set options to the command to be run, then you must supply the end of options \-\- flag before the command. .BR -- 2.7.4