Newlines gets eaten on right margin on window resize if preceeded by an escape code #978
Labels
bug
Something isn't working
fixed-in-nightly
This is (or is assumed to be) fixed in the nightly builds.
Describe the bug
This issue is a corner case on issue #971 - text wrap on resize. I was unsure if I should necromance the old closed issue.
The #971 bug still persist if the glyphs are enclosed in special escape codes like:The #971 bug still persist if there is a escape code before the newline. This often happens with the folowing escape sequences:
DEC Special Graphics character set
␛(0 - Start DEC special graphics set
␛(B - Start ASCII, i.e. end DEC special graphics
DEC CSI DECTCEM
␛[?25l - Hides the cursor
␛[?25h - Shows the cursor
DEC Reset
␛0m - Resets cell attributes
DEC Special Graphics character set is often used to draw tables and boxes.
DEC CSI DECTCEM is often used to enclose ansi-art.
There may be other cases like these, but these are the ones that hit me. Let me know if I should test for more cases.
Environment (please complete the following information):
To Reproduce
Test cases
Configuration
Default config
Expected behavior
Newlines on margin right edge be preserved on terminal resize even when they are enclosed in special escape codes like hide cursor (DECTCEM) and box drawing mode (DEC Special Graphics character set: smacs, rmacs)Newlines on margin right edge be preserved on terminal resize even when there is an escape code before the newline.
The text was updated successfully, but these errors were encountered: