Skip to content

xterm-addon-serialize taint the background of next line when line wrap + scroll happen #3102

@mmis1000

Description

@mmis1000

Details

  • Browser and browser version:
  • OS version:
  • xterm.js version:

Steps to reproduce

  1. press enter several times until scrollbar appear
  2. run echo -e "\x1b[44m\x1b[86X\x1b[87C1\x1b[m\r\n\r\n"
  3. check the Write back to terminal option of SerializeAddon
  4. click Serialize the content of terminal
  5. Notice the background of next line is tainted

Note

It seems this can't be solved without insert \x1b[m at line end when the last cell has background.
But do this will break all current tests?

Or you need to do a costly look ahead to next line to check whether a reset is required or not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions