always get the same width even though I have set fit Addon or not, #5050
Replies: 1 comment 1 reply
-
The fit addon only changes xterm.js' cols * rows metrics to fill the container div properly. You also have to update the size of the PTY to that new size. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I always get the same width even though I have set fit Addon or not, but there is a difference when I set fitAddon when my typing reaches the end of the text it always overlaps
image not use fitaddon

image use fitaddon

my code for resize screen xtermjs
https://codesandbox.io/p/sandbox/summer-worker-mt7gtm
To be honest, I haven't gotten the answer for a year T_T
stack uses next js version 14.0.4.
thanks you before 🙏
Beta Was this translation helpful? Give feedback.
All reactions