xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

Cursor is incorrectly positioned on reflow of cursor line

Open LarryWu1 opened this issue 1 year ago • 0 comments

reflowCursorLine was added as part of https://github.com/xtermjs/xterm.js/pull/5234. When this option is enabled, the text on the cursor line reflows but the cursor is mispositioned. See the images below:

Initial position: before

After text wrapping to new line: text wrap

After unwrapping text to previous line text unwrap

Details

  • Browser and browser version: Brave v1.73.105
  • OS version: Windows 11 Home Version 10.0.22631 Build 22631
  • xterm.js version: 5.6.0-beta.96

Steps to reproduce

  1. Initialize a terminal with reflowCursorLine set to true
  2. Resize the terminal

LarryWu1 avatar Jan 12 '25 05:01 LarryWu1