4 ms·
I just tested in Terminal.app (macOS) with zsh and several things happen: If you do nothing but run `echo -n 'hello world'` and then resize the window, the next
by scarlac 6y ago
I just tested in Terminal.app (macOS) with zsh and several things happen:
If you do nothing but run `echo -n 'hello world'` and then resize the window, the next line prompt will be jittery (it'll jump left and right as you resize but ultimately return to the correct position). My prompt is "14:41:44 ~ ️ <cursor>" and if I resize fast enough, the previous line (the one with the output `hello world%` starts displaying characters on the right side. Characters from the next line. If I do it fast, it becomes obvious what it's doing: Fragments of the next line is copied to the previous line, so the right part of 'hello world%' is filled with: `111141414:314:3914:3914:39:` after a few resizes.
If you press return again (executing no command) then the buggy output is now fixed and no magical behavior occurs.
It may be easier to just see, so here's an example:
https://www.loom.com/share/5eab7cfb4590475a8881fe3e91d92738 https://www.loom.com/share/5eab7cfb4590475a8881fe3e91d92738