fgconsole(1) on Linux
The text 076a4e2437e3, as Debian 12 (Bookworm) shipped it.
print the number of the active VT.
Flags it lists
-
--help -
--next-available -
--version -
-V -
-h