migueldeicaza / SwiftTerm

Xterm/VT100 Terminal emulator in Swift
MIT License
985 stars 145 forks source link

Mouse text selection gets broken after scrolling the first view #306

Closed alealealedocebo closed 1 year ago

alealealedocebo commented 1 year ago

Hi,

I implemented SwiftTerm in my own app. I'm very new to Swift so I may raise a dumb issue.

I can select text with the mouse and use Copy-Paste shortcuts on LocalProcessTerminalView, they work flowlessly. However, if I scroll down the View and select something that was rendered beyond the first view render, I get all the text selected each time instead of what I'm pointing to with the mouse.

Is there any callback I need to be aware of to recalculate the window render geometries?

screen

migueldeicaza commented 1 year ago

Sadly that looks like a bug in the Mac front-end for the Terminal. There is another similar bug to this filed, I will try to take a look soon.

alealealedocebo commented 1 year ago

Thanks. Will you update this thread once done or is there another issue/ticket I should be aware of to track your activities in the matter?