add an example of incrementally printing markdown#47
add an example of incrementally printing markdown#47ifsheldon wants to merge 5 commits intoCanop:mainfrom
Conversation
|
There's a problem: the save/restore thing breaks as soon as there's a scrollbar. I can run it with |
|
I think it's fine. It's an MVP after all. Otherwise, I guess we need to do something like you did in render_input_markdown, which is to use BTW, do you know why this happens? I'm not very familiar with nitty gritty of terminals. From my view, the code logic is fine regardless scrollbar. I tested it on my Mac default terminal and iTerm2 and Warp. Former 2 have this issue, but Warp seems to handle it pretty well. |
Now a scrollbar is not a problem
I fixed this in commit |
|
This code does not work well in vscode, it keeps flashing, repeating the previous content |
This is a minimum code example for incrementally printing markdown. This should close #42