|*||If the TTY environment variable is set, vcrtty outputs its contents.|
|*||If the tty(1) command may be executed successfully, vcrtty outputs its result.|
|*||If the DISPLAY environment variable is set, vcrtty assumes that this is a X session and outputs a "xdesktopN" string after trying to determine which X desktop it is running on; for this purpose, the wmctrl(1) tool is used if available.|
|*||Otherwise vcrtty does not output anything at all; it is up to the invoking program to decide whether to treat this as an error.|
The vcrtty utility examines the TTY and DISPLAY environment variables as outlined above. Also, the PATH variable may affect its operation when invoking tty(1) or wmctrl(1).
The vcrtty utilitys operation is not directly affected by any files.
Well, just do it - output a usable TTY name:
The vcrtty utility was written by
.An Peter Pentchev in 2011.
.An Peter Penchev <firstname.lastname@example.org>