Calling `XTerm.fit` with a non-visable terminal results in thrown error
See original GitHub issueDetails
- Electron: 9.1.2
- Chrome: 83.0.4103.122
- OS version: macos 10.15
- xterm.js version: 4.9.0
Steps to reproduce
- Have the terminal not being rendered
- Using the
FitAddon
callfit()
- Observe the
This API only accepts integers
error.
Seems like this has regressed from #525 but that was over 3 years ago (with at least one major refactor) so I couldn’t find when this happened.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:10 (7 by maintainers)
Top Results From Across the Web
xterm-for-react with xterm-addon-fit throws unable to read ...
I am using xterm-for-react for terminal integration and I want to resize that terminal window as my wrapper div tag around the component ......
Read more >Change-Log for NCURSES - Thomas E. Dickey
20210731 + add extensions in xterm+tmux and ecma+strikeout to ms-terminal, ... tputs' error check to allow it to be used without first calling...
Read more >xterm.js in EcnlProtoTool/trunk/webapp/webmrbc/xterm/src
57, * http://invisible-island.net/xterm/ctlseqs/ctlseqs.html ... 800, throw new Error('Terminal requires a parent element.');.
Read more >Parser Hooks & Terminal Sequences - Xterm.js
For every finished sequence the parser stops parsing and calls the attached sequence handlers (in-band processing). The sequence handlers are hookable (“parser ...
Read more >curses — Terminal handling for character-cell displays ...
The module curses defines the following exception: exception curses.error¶. Exception raised when a curses library function returns an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Tyriar Imho this got fixed in https://github.com/xtermjs/xterm.js/commit/5c9adeef930b969bc822470b504ae690d82dd05e by returning early for NaN.
I thank that’s the best way to use
FitAddon
: