Get a copy of the current selection
char *PtTerminalGetSelection( PtWidget_t *widget );
This function returns a copy of the current selection (or NULL if there's no selection).
![]() |
It's the caller's responsibility to free() the buffer when it's no longer needed. |
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |