vtchs

Description: Listen for console switches
Status: Feature complete
Source: https://git.maandree.se/vtchs
Latest release: 1.1.2
License: ISC License (Internet Systems Consortium license)
Written in: C (ISO C99)

vtchs prints which Linux VT is in the foreground when it starts and each time the foreground VT is changed.