Home | History | Annotate | Download | only in posix

Lines Matching refs:tty

0 /* tty.c - Show stdin's terminal name
5 * See http://opengroup.org/onlinepubs/9699919799/utilities/tty.html
7 USE_TTY(NEWTOY(tty, "s", TOYFLAG_USR|TOYFLAG_BIN))
9 config TTY
10 bool "tty"
13 usage: tty [-s]
17 Prints "not a tty" and exits with nonzero status if no terminal
27 char *tty = ttyname(0);
29 if (!toys.optflags) puts(tty ? tty : "not a tty");
31 toys.exitval = !tty;