rmam / smam only work for initial output, not resizing
Currently the rmam sequence correctly stops the line from wrapping when printed. (e.g. run tput rmam; perl -e 'print "x"x1000'; tput smam
, it only prints one line of x
s.).
However, instead of being treated as a long line that isn't wrapped, it's treated as a line that was truncated to $COLUMNS. So if you resize the terminal, the behaviour is unexpected.
When making the terminal larger, the line does not show additional x
s to the right. And when making the terminal smaller, the line ends up wrapping. Ideally the line would be maintained as-is, and as the terminal resizes it would truncate at the new width.
Tested on GNOME Terminal 3.36.0.1 (Using VTE version 0.60.0 +BIDI +GNUTLS +ICU +SYSTEMD)