xterm.js was adopted a bit ago for Visual Studio Code. It's quite nice. <a href="https://code.visualstudio.com/docs/editor/integrated-terminal" rel="nofollow">https://code.visualstudio.com/docs/editor/integrated-termina...</a><p>Another project worth mentioning is hterm. It's used in the Secure Shell Chrome extension and in the Hyperterm project.
<a href="https://chromium.googlesource.com/apps/libapps/+/master/hterm" rel="nofollow">https://chromium.googlesource.com/apps/libapps/+/master/hter...</a>
It's worth doing a bit of performance testing on these.<p>The last one I tested (not xterm.js) really started bogging down (I made a simple test that sent output to two terminals at the same time) - when sent a lot of data, until it was possible to freeze the browser.
Nice. I'm currently using a cobbled together terminal in my project, it works well enough to run nano but no scrollbuffer or text selection. I have a system where Linux processes can connect to a Unix domain socket and it tunnels over a websocket connection to provide the UI. Sort of like X11 only with a webpage on the far end.<p>Xterm.js and hterm both seem like good candidates for a real-world use terminal
I use Wetty. It is too good and gives a near native terminal experience.<p>Link below ..<p>[krishnasrinivas/wetty: Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)](<a href="https://github.com/krishnasrinivas/wetty" rel="nofollow">https://github.com/krishnasrinivas/wetty</a>)
How would that compare to GoTTY[1]?<p>[1] <a href="https://github.com/yudai/gotty" rel="nofollow">https://github.com/yudai/gotty</a>