Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtTerminalSelectWord()

Select a word

Synopsis:

int PtTerminalSelectWord( 
        PtWidget_t *widget, 
        PtTerminalRowCol_t const *pos );

Description:

This function selects a word containing the character at the specified position (or at the cursor position if pos is NULL).

The PtTerminalRowCol_t structure contains the following members:

Returns:

1
Done.
0
There's no word at the specified position (neither the character at the specified position nor the character to the left is a letter, digit or underscore).
-1
The pos argument is invalid (i.e. beyond the screen size).

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTerminal