Skip to content

Heavy flickering and CLI pollutionΒ #1

@anatoli26

Description

@anatoli26

Hi,

I'm testing you lib for streaming MD output. With the latest 1.0.2 version I get heavy flickering of the text. Also, when the streamed text occupies more than what enters on the terminal screen/viewport, it starts to copy the entire content again and again, so when the streaming ends, the CLI output history is overflowed with the repeated blocks of the streamed content, like on each update the entire content was printed again and again.

It looks like your library redraws the entire content on each update, but at the same time you have the logic to detect elements' boundaries and nested elements. Isn't it better to wait for a complete element (on any level of nesting) and then just draw it once, then continue with the next element? This way there would be none of the above-mentioned problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions