You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the C9 console doesn't support \e[3J (and wiping scrollback entirely is kind of gauche anyway), I'm wondering if it's possible to do something like \e[100F (when there are 100 lines printed in the current list), rewrite them, then \e[0J away anything else (if there are fewer lines, ie. because a project was deleted).
There's also making use of saving/restoring cursor position, or using the "scroll up / down" sequences, but I'm pretty sure these are going to be restricted to what's within the terminal's display space (and I fear the same is probably true of Cursor Previous Line as well).
Is there an elegant pager library for Node that would let me virtualize this? I want something like less, but with auto-updating contents (which I can't do with actual Less).
The text was updated successfully, but these errors were encountered:
I could probably throw something like a pager together reasonably simply with blessed - I imagine it's already got a widget for scrolling text.
The concern on my mind is, will that widget play nice with text that's already formatted with chalk? It'd suck if I have to go and rewrite the colorization logic with more complexity.
Since the C9 console doesn't support
\e[3J
(and wiping scrollback entirely is kind of gauche anyway), I'm wondering if it's possible to do something like\e[100F
(when there are 100 lines printed in the current list), rewrite them, then\e[0J
away anything else (if there are fewer lines, ie. because a project was deleted).There's also making use of saving/restoring cursor position, or using the "scroll up / down" sequences, but I'm pretty sure these are going to be restricted to what's within the terminal's display space (and I fear the same is probably true of Cursor Previous Line as well).
Is there an elegant pager library for Node that would let me virtualize this? I want something like
less
, but with auto-updating contents (which I can't do with actual Less).The text was updated successfully, but these errors were encountered: