[Feature complete] Listen for VT switches
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Mattias Andrée 2d54f1473d Improve makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
2 years ago
.gitignore Rewrite and relicense 6 years ago
LICENSE Rewrite and relicense 6 years ago
Makefile Improve makefile 2 years ago
README extend rationale 8 years ago
config.mk Improve makefile 2 years ago
vtchs.1 Update man page 6 years ago
vtchs.c Update headers 2 years ago

README

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. In particular, I want to be able
	to record the output on the mintors, and have
	it detect VT switches, so it can select the
	appropriate method and display; and I want to
	be able to have VT dependent colour adjustments.

SEE ALSO
	fgconsole(1), chvt(1)