Skip to content

Resize & fit causing input display incorrectly #3962

@ZodiacWind

Description

@ZodiacWind

I used xterm-addon-fit to resize the terminal while the window size changing.

The terminal can resize normally. However, if there are multiple lines input, the current input cannot dispplay correctly:

  • If the window becomes larger, many spaces will be added to the tails input instead of filling with following lines.
  • If the window shrinks, the current input will be truncated and could not be recovered.

In addition, historical input can be displayed correctly.

Untitled video——使用Clipchamp制作 (1)
Untitled video——使用Clipchamp制作 (2)
Untitled video——使用Clipchamp制作 (3)

Details

  • Browser and browser version: Google Chrome 103.0.5060.134(
  • OS version: Windows 11 10.0.25163
  • xterm.js version: 4.20 beta 26

Steps to reproduce

  1. Please refer to the code: https://codesandbox.io/s/xtermreact-demo-forked-o5n04u to reproduce it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions