Replies: 1 comment 2 replies
-
Sorry, I'm a slowpoke:
I dont understand that interaction pattern. If a user scrolls to the top, then you want to insert empty lines above? Doesnt that negate the "scrolling to the top" idea by introduction empty space? Care to show a gif/screencast that can show that idea? In general major manipulations on the terminal buffer are possible, but there are no predefined mass actions on the API. You basically have to do the buffer(line) shifts yourself (what you prolly already do). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm using
xterm.js
in a React app and would like to implement the following behavior:I've attempted this by manipulating the buffer with the following approach:
However, this feels more like a workaround, and I'm having difficulty achieving a smooth experience, for example when the lines are added the selection is resetting. Is there a better or recommended way to handle this ?
Beta Was this translation helpful? Give feedback.
All reactions