Wraparound is only honored when typing at the end of the line. The line is not wrapped if characters are inserted at any other place.


FWIW, I had implemented a workaround for xterm 4.19, which relied on the private _dirtyRowService.
Details
- Browser and browser version: Chrome 108
- xterm.js version: 5.1.0 + fit addon 0.7.0
Steps to reproduce
- Enable insert mode and wraparound mode
- Type some characters
- Move to the beginning of line
- Type more characters
- Observe that the line is not wrapped
terminal.write('2345678');
terminal.write('\x1b[7D');
terminal.write('1'.repeat(terminal.cols-1));
Wraparound is only honored when typing at the end of the line. The line is not wrapped if characters are inserted at any other place.
FWIW, I had implemented a workaround for xterm 4.19, which relied on the private
_dirtyRowService.Details
Steps to reproduce