Syntax
tty()
Description
The tty() function returns the name of the terminal attached to standard input. If the standard input is not a terminal, the string “Not a tty” is returned.
Example
include("main")
println(tty())
/dev/pts/0
Just another Monkey Lang
tty()
The tty() function returns the name of the terminal attached to standard input. If the standard input is not a terminal, the string “Not a tty” is returned.
include("main")
println(tty())
/dev/pts/0