Description
I'm running polyglot using ksh on macOS Big Sur v11.6.
When running it on CentOS or RHEL, the longer commands slide, so they stay on one line.
However, whether I use polyglot within wezterm or the default Terminal app, scrolling back to a long line or typing in a long line will result in the cursor jumping around. The simplest example I've been able to reproduce is executing a git command that exceeds the line length, then opening a new shell and pressing up arrow twice with the intention of re-running (or modifying) the long git command.
The result of that sequence of actions in an 80x24 Terminal is shown in the image below:
I also experience strange behavior when moving left and right on long commands, but I believe those are related to this issue, so will wait until we figure out how to solve this and see if the others go away.