aboutsummaryrefslogtreecommitdiffstats
path: root/doc/info/chap/invoking.texinfo
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-17 14:08:42 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-17 14:08:42 +0100
commit40315833ec5e127beab2cc5ba88a290960e1f2b4 (patch)
tree48d825c6ec6ed294ec36e25f312f7202f5767095 /doc/info/chap/invoking.texinfo
parentadd man page (diff)
downloadvtchs-40315833ec5e127beab2cc5ba88a290960e1f2b4.tar.gz
vtchs-40315833ec5e127beab2cc5ba88a290960e1f2b4.tar.bz2
vtchs-40315833ec5e127beab2cc5ba88a290960e1f2b4.tar.xz
add info manual
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--doc/info/chap/invoking.texinfo31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/info/chap/invoking.texinfo b/doc/info/chap/invoking.texinfo
new file mode 100644
index 0000000..53fae77
--- /dev/null
+++ b/doc/info/chap/invoking.texinfo
@@ -0,0 +1,31 @@
+@node Invoking
+@chapter Invoking
+
+@command{vtchs} ignores the command line
+and the environment variables. You cannot
+control its behaviour.
+
+However, it is required that standard input
+is a @file{/dev/tty} device. If this programs
+is running under root,
+@example
+vtchs < /dev/tty1
+@end example
+@noindent
+is sufficient. Non-root users need to find
+a TTY that they have access to. If your
+shell is GNU Bash, you can use
+@example
+vtchs < "/dev/tty$( i=1;
+ while true; do
+ if ! test -e /dev/tty$i; then
+ exit 1;
+ fi;
+ exec < /dev/tty$i &&
+ echo $i &&
+ exit 0 ||
+ : $(( i++ ));
+ done 2>/dev/null
+ )"
+@end example
+