pyte icon indicating copy to clipboard operation
pyte copied to clipboard

[Question] Get direct stream of characters/special-functions/cursor-movement?

Open matkuki opened this issue 10 months ago • 0 comments

Hi,

Is there a possibility instead of getting a Screen object with a list of lines to display, to get a Character/special function/cursor movement output stream somehow?

In my use case with PyQt's QPlainTextEdit, it's easier to fill an editor character by character, instead of recalculating the new top point of where the newly received buffer should start. That would give the ability to the QPlainTextEdit to use it's built-in scrolling system.

I mean I tried, but it's very wonky, especially when trying to make it work on Windows and Linux. If you're off by one line height you get the wrong thing to happen, like: some lines get duplicated, lines that shouldn't be deleted get deleted, ...

Thanks

matkuki avatar Sep 02 '23 08:09 matkuki