Go to main content

ttyname

Return current ttyname

TTYNAME

NAME

ttyname - Return current ttyname, name of a terminal.

SYNOPSIS

ttyname()

DESCRIPTION

This function return the current ttyname or null if we are not running on a terminal.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

 res={_{ ttyname(); }}. // return /dev/pts/6

SEE ALSO

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2018-12-01 21:24:14 laplante@sednove.com initial version

Edit

© 2024 extenso Inc. All rights reserved.