[Previous] [Contents] [Index] [Next]

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 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

[Previous] [Contents] [Index] [Next]