Click here to Skip to main content
15,867,686 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: how to identify the " selected text highlights" event ? Pin
trønderen21-Nov-22 8:16
trønderen21-Nov-22 8:16 
You'll probably hate me for answering to your post without giving you the answer you want.

But it doesn't exist.

When your application sends out some text on a serial line, going to a teletype or CRT or whatever, it sends that text away. The text on your screen is not the string in your application. It is a copy of a string in your application - a copy that has been sent away.

Imagine yourself sending a letter (in the paper sense) to a friend. This friend picks up his yellow marker to highlight a couple words that you wrote; he might refer to those words when replying to you. You are asking for a way to change the letter you sent him a day or two ago, in the words that your friend highlighted. You can't. The words are no longer under your control.

The xterm highlighting you see is completely independent of your application. xterm is like a remote friend of the application: The text(copy) belongs to xterm, and it is xterm doing the highlighting, completely out of the control of the application. Whatever your xterm wants to do with the highlighted word(s), it can do. Essentially, it can copy the word(s) into a copy/paste buffer and paste it in as part of the input so that you don't have to type it on the keyboard. The application knows nothing about this copy/paste business and sees the paste as if it was typed.

If you want your application to be aware of highlighting done by the user, xterm is not the right tool You will have to write your own X11 client. It may look quite similar to that xterm client at the UI, but it will have a very different interface to your application, not trying to emulate an RS232 connected dumb terminal, the way xterm does.
GeneralRe: how to identify the " selected text highlights" event ? Pin
trønderen22-Nov-22 4:25
trønderen22-Nov-22 4:25 
AnswerRe: how to identify the " selected text highlights" event ? Pin
Gerry Schmitz21-Nov-22 10:02
mveGerry Schmitz21-Nov-22 10:02 
AnswerRe: how to identify the " selected text highlights" event ? Pin
Richard MacCutchan21-Nov-22 21:43
mveRichard MacCutchan21-Nov-22 21:43 
AnswerRe: Linux Ubuntu grub issues - how to resolve ? Pin
Gerry Schmitz26-Aug-22 9:02
mveGerry Schmitz26-Aug-22 9:02 
AnswerRe: Linux Ubuntu grub issues - how to resolve ? Pin
Richard MacCutchan26-Aug-22 22:02
mveRichard MacCutchan26-Aug-22 22:02 
AnswerRe: bluetoothctl command - how to disable it ? (terminate command ) Pin
Dave Kreskowiak26-Aug-22 8:56
mveDave Kreskowiak26-Aug-22 8:56 
QuestionHow to list all devices on network Pin
HarryRIchard24-Aug-22 17:37
HarryRIchard24-Aug-22 17:37 
AnswerRe: How to list all devices on network Pin
Dave Kreskowiak24-Aug-22 17:55
mveDave Kreskowiak24-Aug-22 17:55 
GeneralRe: How to list all devices on network Pin
Wayne Cannon 202125-Aug-22 13:01
Wayne Cannon 202125-Aug-22 13:01 
GeneralRe: How to list all devices on network Pin
Dave Kreskowiak25-Aug-22 16:51
mveDave Kreskowiak25-Aug-22 16:51 
GeneralRe: How to list all devices on network Pin
PIEBALDconsult25-Aug-22 13:02
mvePIEBALDconsult25-Aug-22 13:02 
AnswerRe: How to list all devices on network Pin
Gerry Schmitz26-Aug-22 8:52
mveGerry Schmitz26-Aug-22 8:52 
AnswerRe: Linux Ubuntu boot from "Ubuntu" file - what is the name of it ? Pin
Richard MacCutchan24-Aug-22 21:42
mveRichard MacCutchan24-Aug-22 21:42 
Questiondata storage on aero planes Pin
Calin Negru20-Aug-22 3:54
Calin Negru20-Aug-22 3:54 
AnswerRe: data storage on aero planes Pin
Gerry Schmitz20-Aug-22 12:42
mveGerry Schmitz20-Aug-22 12:42 
GeneralRe: data storage on aero planes Pin
Calin Negru20-Aug-22 20:33
Calin Negru20-Aug-22 20:33 
AnswerRe: Dissect Linux multiboot system Pin
Richard MacCutchan16-Aug-22 21:40
mveRichard MacCutchan16-Aug-22 21:40 
GeneralRe: Dissect Linux multiboot system Pin
trønderen17-Aug-22 5:46
trønderen17-Aug-22 5:46 
GeneralRe: Dissect Linux multiboot system Pin
Richard MacCutchan17-Aug-22 6:01
mveRichard MacCutchan17-Aug-22 6:01 
GeneralRe: Dissect Linux multiboot system Pin
Gerry Schmitz17-Aug-22 7:00
mveGerry Schmitz17-Aug-22 7:00 
GeneralRe: Dissect Linux multiboot system Pin
Richard MacCutchan17-Aug-22 21:45
mveRichard MacCutchan17-Aug-22 21:45 
QuestionWhich Resonator Should I Choose For My Radio? Pin
yai ck2-Aug-22 0:13
yai ck2-Aug-22 0:13 
AnswerRe: Which Resonator Should I Choose For My Radio? Pin
Dave Kreskowiak8-Aug-22 6:48
mveDave Kreskowiak8-Aug-22 6:48 
AnswerRe: Which Resonator Should I Choose For My Radio? Pin
Craig Robbins17-Aug-22 6:31
Craig Robbins17-Aug-22 6:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.