-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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.