Home  Contents

rawio:device

Rawio Core4 Lua Event System

SYNOPSIS

name = handle:device()

DESCRIPTION

For TTY devices, returns the internal name of the TTY device. This value is only useful for debugging.

For USB printer devices, returns the IEEE 1284 compatible device ID.

RETURN VALUE

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

SEE ALSO