how to access in C and Xfce ANY text that was hi-lited with mouse after Ctl-C pressed
I want my C (NOT C++) program to have its input be the text that was
hi-lited with a mouse and then the user pressed Ctl-C.
It would be nice if EVERY time new text is hi-lited and Ctl-C is
pressed my program can be notified that NEW data is available.
I am guessing that my program should run as a daemon and be sent
a USR1 or USR2 signal to tell me that new data was hi-lited.
1 Where is this buffer kept, what is its name, how to access it.
2 What is the OS program name that DOES the pasting to the buffer.
I may need to modify it to send my program a Signal that new text
has been hi-lited, Ctl-C was pressed and new text is in the buffer.
Last edited by MrPolock; 01-27-2022 at 08:03 PM.
Reason: added points 1 and 2
|