-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
I am not sure if it's the same problem but when I open a file by 'less' or 'vi' it uses only half of the available space. After exiting them terminal returns to full screen. Do you know why 'less' or 'vi' are using only half of the screen? I've got "xterm": "^5.1.0", "xterm-addon-fit": "^0.7.0" on react 17 project. |
Beta Was this translation helpful? Give feedback.
-
@dmarkowski Whats the size terminal size in cols/rows ( |
Beta Was this translation helpful? Give feedback.
-
@jerch when I add a listener to |
Beta Was this translation helpful? Give feedback.
-
Ah well, you need to apply the size changes to the PTY as well (values should stay in sync). |
Beta Was this translation helpful? Give feedback.
-
@jerch thx for help. After setting PTY size it works. I thought that 'xterm-addon-fit' will do this out of the box but I was wrong. |
Beta Was this translation helpful? Give feedback.
-
It cannot do that, as it does not know, how to inform the backend of the changes (this highly depends on your backend integration). The fit addon only updates the terminal metrics from div container size changes. |
Beta Was this translation helpful? Give feedback.
Ah well, you need to apply the size changes to the PTY as well (values should stay in sync).