How can I Limit content in Terminal? #4558
Replies: 1 comment 7 replies
-
Did you mix up "columns" and "rows" in your question? column output can only be changed via resize (just make the terminal smaller in width), it is not possible to truncate column output by other means. A terminal (with or w'o scrollback) already implements the "windowing" on rows as you describe with your numbering scheme. If output lags alot, maybe try a different renderer (canvas or webgl addon). If output still lags with one of these, then the issue is most likely within your code. |
Beta Was this translation helpful? Give feedback.
-
I have created a terminal using xtermjs and node-pty, which works well but When terminal have 100 + columns then it's lag so i want to limit the column and if it exceeds the limit then just start remove column from starting.
For eg:
Assume these numbers as column:(and max column is 5)
1
2
3
4
5
And now adds a new data in terminal 6 and remove 1 then it looks like : 2, 3, 4, 5, 6
How can I do this ? I have tried some ways but failed. please help me? VScode also do this , I thought it uses scrolllines(-ve value);
?
Beta Was this translation helpful? Give feedback.
All reactions