diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-17 01:41:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-17 01:41:28 +0100 |
commit | f2bc2116e25acd28cd7f6ab4ef73c745d971b359 (patch) | |
tree | bc71f31436f6386bf013ea622d901ab34c143177 /README | |
parent | deps (diff) | |
download | vtchs-f2bc2116e25acd28cd7f6ab4ef73c745d971b359.tar.gz vtchs-f2bc2116e25acd28cd7f6ab4ef73c745d971b359.tar.bz2 vtchs-f2bc2116e25acd28cd7f6ab4ef73c745d971b359.tar.xz |
add readme
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'README')
-rw-r--r-- | README | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +NAME + vtchs - Listen for VT switches + +ETYMOLOGY + (v)irtual (t)erminal (ch)ange(s) + +SYNOPSIS + vtchs + +DESCRIPTION + vtchs ignores all arguments. You must have set + stdin to be a /dev/tty device. + + When vtchs starts, it prints the number of the + currently active console. Then, in an infinite + loop, it waits for the user to change console, + and prints the number of the newly active console + when this happens. + +RATIONALE + Sometimes you need to be able to know which + console is in the foreground, and stay up to + date on this. + +SEE ALSO + fgconsole(1), chvt(1) + |