PtTerminalPut(), PtTerminalPutc(), PtTerminalPuts()

Output text to the terminal

Synopsis:

int PtTerminalPut(  PtWidget_t *widget, 
                    const char *buffer, 
                    size_t nchars );

int PtTerminalPutc( PtWidget_t *widget, 
                    char character );

int PtTerminalPuts( PtWidget_t *widget, 
                    const char *string );

Description:

These functions output characters to the terminal widget.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

EINVAL
The widget isn't a terminal widget.
EBUSY
Invalid recursion.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTerminal