summaryrefslogtreecommitdiff
path: root/util/sbase/tty.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/tty.1')
-rw-r--r--util/sbase/tty.124
1 files changed, 24 insertions, 0 deletions
diff --git a/util/sbase/tty.1 b/util/sbase/tty.1
new file mode 100644
index 00000000..11580e32
--- /dev/null
+++ b/util/sbase/tty.1
@@ -0,0 +1,24 @@
+.Dd October 8, 2015
+.Dt TTY 1
+.Os sbase
+.Sh NAME
+.Nm tty
+.Nd print terminal name
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+.Nm
+writes the name of the terminal open on stdin to stdout.
+.Sh EXIT STATUS
+.Bl -tag -width Ds
+.It 0
+stdin is a terminal.
+.It 1
+stdin is not a terminal.
+.It > 1
+An error occurred.
+.El
+.Sh SEE ALSO
+.Xr ttyname 3
+.Sh STANDARDS
+POSIX.1-2013.