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