-
Hello, Are there any good addons to make a self-contained terminal? In other words, a browser-only (without a backend) terminal with history, keys support (arrows, backspace etc), maybe other features. I saw some examples, like https://github.com/wavesoft/local-echo, but they appear to be abandoned and somewhat buggy. What you'd suggest to use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
As far as I am aware there is no ready-to-go solution w'o flaws for pure in-browser handling with xterm.js. There mainly 2 big issues behind it - first the missing pty implementation, and second a shell variant resembling typical key stroke pattern one might expect to work. I started https://github.com/jerch/browser-fakepty out of curiosity, how far I'd get with that in pure browser realms, but it is nothing more than a toy experiment atm. While one can get somewhere with that approach, it still needs serious coding efforts to get the basics straight. As I had no own serious use case for it I stopped development when more and POSIX abstraction layers got pulled in partially resembling given kernel interfaces, while drawbacks like being bound to coop-style only cannot be solved easily (esp. emulating blocking IO with native languages compiled to wasm). |
Beta Was this translation helpful? Give feedback.
As far as I am aware there is no ready-to-go solution w'o flaws for pure in-browser handling with xterm.js. There mainly 2 big issues behind it - first the missing pty implementation, and second a shell variant resembling typical key stroke pattern one might expect to work.
You are pretty much on your own here beside those solutions pointed out by @Tyriar here #4404 (comment) or the one you mentioned above.
I started https://github.com/jerch/browser-fakepty out of curiosity, how far I'd get with that in pure browser realms, but it is nothing more than a toy experiment atm. While one can get somewhere with that approach, it still needs serious coding efforts to get the basics straight. As …