aboutsummaryrefslogtreecommitdiffstats
path: root/README
blob: 7663a4b920dde81b753583721091f591eceb93ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)