-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spinners in console applications make selection difficult #318
Comments
I think the issue might be here: https://github.com/sourcelair/xterm.js/blob/master/src/xterm.js#L1075. If this is a "big refresh", then xterm.js removes all rows from the DOM for faster calculations and this messes up with selections. I am not sure what could be the best solution here. Three things come in mind:
While 3. needs the most effort to get right, I guess that it is the best and most future-proof solution. |
Well if we can shift the elements upwards without removing the elements from |
We could also use HTML fragments and partially updating them. This would be a nice idea too IMO. After a quick Google search I found this one: https://github.com/fiduswriter/diffDOM |
Duplicate #468 |
Fixed in #670 |
From what I can see, spinners like in npm or https://github.com/sindresorhus/elegant-spinner cause the entire viewport to be destroyed and re-rendered. I believe this is why selecting text is difficult when a spinner is active. If the entire viewport is indeed being re-created this certainly wouldn't be good for laptopbattery either.
Details
Steps to reproduce
The text was updated successfully, but these errors were encountered: