~sircmpwn/ctools

ref: 0e9f63c42367ef836a3dbe9369cb987558b0d9e3 ctools/doc/tty.1.scd -rw-r--r-- 657 bytes
0e9f63c4 — Christopher Vittal Add dirname 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
tty(1) "ctools"

# NAME

tty - print the name of the controlling tty

# SYNOPSIS

*tty*

# DESCRIPTION

*tty* prints the name of the tty associated with this process. If no tty is
associated with this process, "not a tty" is printed instead and the exit
status will be set to 1.

# EXIT STATUS

|] 0
:[ Command completed successfully
|  1
:  _stdout_ is not a tty
|  >1
:  An error occured

# DISCLAIMER

This command is part of ctools and is compatible with POSIX-1.2017, and may
optionally support XSI extensions. This man page is not intended to be a
complete reference, and where it disagrees with the specification, the
specification takes precedence.