GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VCRTTY(1) FreeBSD General Commands Manual VCRTTY(1)

vcrtty
try to find a terminal-like name for the current session

vcrtty

The vcrtty utility examines the current session and tries to find the name of a terminal or something similar that could describe it for tools like vcr(1) that do different things on different terminals. The vcrtty utility tries the following in succession:
*
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 exits 0 on success, and >0 if an error occurs.

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 utility's operation is not directly affected by any files.

Well, just do it - output a usable TTY name:

vcrtty

tty(1), vcr(1), wmctrl(1)

The vcrtty utility was written by Peter Pentchev in 2011.

Peter Penchev ⟨roam@ringlet.net⟩
March 2, 2011 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.