magiblot / tvision

A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
Other
1.99k stars 150 forks source link

Syntax Highlighter + mark Text with Shift+Cursor Up/Down and Left/Right #132

Open paule32 opened 8 months ago

paule32 commented 8 months ago

Hello, and Happy New Year !!!

according to SyntaxHighlighter, I would know, and implement "marking Text (to Copy)" Function in the Syntax Highlighter. It is a very simple Highlighter, but it is missing of some things - like marking Text. Can you give me some Idea's or Solution's, on how to do this ? The mouse clicks, and scrolls must be included, too - but this can wait. Most of Time, if you use TurboVisoon, you work with the Hand's, and not with mouse.

Thanks for helping/reading paule32

magiblot commented 8 months ago

Hi, Jens. Happy new year!

What exactly do you mean by "marking text"? Do you mean that any selected text is automatically copied to the clipboard?

paule32 commented 8 months ago

by marking Text, I mean "select" Text with SHIFT + CursorKeys. After this, the Text should be copied, if the User take action. But, I have new ideas on how to do this: so, I could work with selText and Co. to get the Text, and change the Color Attributes.