SelectionChanged event in Rebex.TerminalEmulation.TerminalControl

0 votes
asked Mar 24, 2011 by Yury (120 points)
edited Mar 12, 2012

We are considering using TerminalControl in our application as built-in SSH/Telnet client.

The application’s toolbar toolbar has a Copy button that would allow copying the selected text into the Windows Clipboard. But it seems that the TerminalControl doesn’t have an event that would get fired when selection changes. So because of that the only way the Copy button could be updated is by making periodical GetSelectedText() method call. This would be rather bad and wasteful approach.

So my question is there any way to receive notifications from a TerminalControl instance about selected text changes?

Thanks, Yury

1 Answer

0 votes
answered Mar 24, 2011 by Lukas Matyska (56,670 points)
edited Mar 12, 2012

Actually the selected text is copied to the Windows Clipboard immediately when the Left Mouse Button goes up (it is the same behaviour as the PuTTY do). So the Copy button is not neccessary at all.

However the SelectionChanged event is a good idea. It will be added in the next release. Thank you for the suggestion.

UPDATE

TerminalControl.SelectionChanged event was added in Release 2012 R1.

...