From f2bc2116e25acd28cd7f6ab4ef73c745d971b359 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 17 Dec 2015 01:41:28 +0100 Subject: add readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..7663a4b --- /dev/null +++ b/README @@ -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) + -- cgit v1.2.3-70-g09d2