pvolok / mprocs

Run multiple commands in parallel
MIT License
1.51k stars 50 forks source link

Screen get "jumbled" with empty lines on the bottom after a while #105

Open finsterwalder opened 10 months ago

finsterwalder commented 10 months ago

I run mprocs in an iTerm2 window on a Mac. And I leave it running for long periods, doing standby in between etc. From time to time (could not yet figure out what might cause it), the screen gets jumbled. I looks like someone entered a lot of newlines at the end of the screen, pushing the screen up about half way. When you move around the UI, the parts that change are redrawn, but some parts just stay broken. e.g. the list of processes re-appears one by one, when you move up or down with the cursor. Since that triggers a redraw of the right side, the Terminal area is redrawn as well. When you switch with Ctrl-A, some of the Help is redrawn.

To mitigate the problem, it would be nice to simply have a "redraw screen" hotkey.

pvolok commented 10 months ago

Thanks for the report. I hope we can track the problem. If you will notice any other clues, please let me know.

Currently, full redraw can be triggered by resizing terminal.

As for the "redraw screen" command, I don't think it's worth adding a binding by default, because hopefully it should never be needed. But I am planning to add a command menu with search, similar to Emacs or VSCode. So we can have the command but not bind it by default.

finsterwalder commented 10 months ago

Not binding by default sounds reasonable. I could define a custom shortcut if I wanted to.

danielnorberg commented 9 months ago

I'm unable to trigger a full redraw by resizing the terminal. Using mprocs v0.6.4. Is this expected behavior?