textual icon indicating copy to clipboard operation
textual copied to clipboard

Code Viewer example does not support scrolling on macOS

Open zachriggle opened this issue 3 years ago • 2 comments

When playing with the examples, at first the Code Viewer seems to work! However, attempting to scroll the code shown causes control characters to be printed to the screen. Lots of bells are printed.

This happens with macOS terminal (default configuration) and in iTerm2 (lots of custom configuration). Both fail in the same way.

Screenshot and video attached.

Screen Shot 2022-04-15 at 9 40 12 PM

https://user-images.githubusercontent.com/111640/163658400-8df11f33-c70b-4e05-9123-3bead4f6ca44.mov

zachriggle avatar Apr 16 '22 02:04 zachriggle

I can't reproduce that here, on MacOS. Do you have any kind of shell integration or extension active?

Is it only the code viewer where this happens, or other examples? How are you scrolling? Touch pad or mouse?

Is it only that one particular file where you see this issue? If so, can you send me a copy.

Can you use the mouse with other TUI apps, such has htop ?

willmcgugan avatar Apr 18 '22 07:04 willmcgugan

Got same issue with ScrollView on linux. If run app with stdin input (from pipe) arrors keys and mouse moves cause same effect. Regular run -> OK. Same effect with rich-cli. Tested on ubuntu, different terminals, same with remote ssh access. check with python 3.9 and 3.10

In my case -> app read data from pipe and not from tty. But it looks like example above.

ayasyrev avatar Apr 19 '22 11:04 ayasyrev

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]