Skip to content

Selecting a more than one line using API includes trailing CRLF #3552

@javier-godoy

Description

@javier-godoy

Selecting a whole line using API includes trailing \r\n.

Details

  • Browser and browser version: Chrome 95
  • OS version: Windows 10
  • xterm.js version: 4.14.0

Steps to reproduce

  1. terminal.resize(30,20)
  2. terminal.write("012345678901234567890123456789")
  3. Select the line using the mouse.
  4. Confirm that terminal.getSelectionPosition() is {startColumn: 0, startRow: 0, endColumn: 31, endRow: 0}
  5. terminal.select(0,0,31)
  6. terminal.getSelectionPosition() is {startColumn: 0, startRow: 0, endColumn: 1, endRow: 1} and getSelection() returns '012345678901234567890123456789\r\n'

See below.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions