xtermjs/xterm.js
Auf GitHub ansehenThe terminal instance cannot be rendered correctly after calling `.open()` for the second time.
Open
#4.978 geöffnet am 3. März 2024
help wantedtype/bug
Repository-Metriken
- Stars
- (16.196 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 4T 3h) (81 gemergte PRs in 30 T)
Beschreibung
I am new to using xtermjs. I am not sure whether the terminal instance can call the open() method multiple times. According to the official documentation and https://github.com/xtermjs/xterm.js/issues/1323, I tried it. When I removed the dom and mounted again, and used terminal.open(), xterm did not render after the second open.
Details
- Browser and browser version: chrome 122.0.6261.94
- OS version: macOS 14.3
- xterm.js version: 5.4.0
Steps to reproduce
- Click the toggle button, xterm renders correctly.
- Click the toggle button, remove dom
- Click the toggle button, mount dom, xterm did not render after the second open
I'm sorry if there's something wrong with my usage