textual icon indicating copy to clipboard operation
textual copied to clipboard

Implement cursor

Open leftbones opened this issue 3 years ago • 1 comments

I've been reading the source code (since there's not much documentation) and haven't found any ways to move the cursor around, or even really show the cursor.

For learning Textual, I've been making a modified version of the code viewer example. For starters I'm trying to implement cursor movement with HJKL, for scrolling through the code viewer, and eventually for when I attempt to turn this into an editor rather than just a viewer.

leftbones avatar May 14 '22 22:05 leftbones

https://github.com/sirfuzzalot/textual-inputs has an example of an input with a cursor. But it uses an actual character to represent it, rather than a native cursor as you would in ncurses. It has the effect of causing text to the right of the cursor to jump a character left or right as you move the cursor about. It's.... really not good, but it's the only example I've seen so far.

A proper cursor would be much preferred.

adamlwgriffiths avatar Jun 15 '22 03:06 adamlwgriffiths

https://github.com/Textualize/textual/wiki/Sorry-we-closed-your-issue

willmcgugan avatar Oct 25 '22 09:10 willmcgugan

Did we solve your problem?

Glad we could help!

github-actions[bot] avatar Oct 25 '22 09:10 github-actions[bot]