Mwnci tty() Function

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