Home Contents | # rawio:name | Rawio | Core4 Lua Event System

## SYNOPSIS

filename = handle:name()

## DESCRIPTION

Returns the name of the TTY device that is open. Useful when the handle was opened on /dev/tty and we want to know the real McCoy.

## RETURN VALUE

On success, returns a filename. On failure, returns nil. In case of an error, the error can be retrieved using rawio:lastError().

## ERRORS

This function works only on TTY devices.

## SEE ALSO

rawio:break, rawio:cts, rawio:dcd, rawio:device, rawio:drain, rawio:dsr, rawio:dtr, rawio:fd, rawio:flush, rawio:rng, rawio:rts, rawio:rxcnt, rawio:setDtr, rawio:setRts, rawio:setupComm, rawio:start, rawio:stop, rawio:txcnt