(no title)
benjaminjackman | 4 years ago
Before that I was experimenting with using it as a custom shell for running commands inside a web application. In that use case it was a bit more challenging because I had never written to an actual tty before (ansi escape codes for coloring log files has been about the limit of my experience). For that use case I just really needed to send and receive text. I ended up using this library [ https://github.com/wavesoft/local-echo ] to smooth that process out until I could learn about how to do things properly.
Are any suggestions on:
1. where to learn about how ttys work to do things the right way, or
2. suggested libraries like local-echo that can wrap over some of the trickier bits of just getting text on the screen?
Thanks again for maintaining such a great & useful library!
Tyriar|4 years ago
2. The library you mention is the one I'm aware of, I have a WIP for building a basic shell in JS that I will probably open source eventually if I have the time.
brundolf|4 years ago
Xterm.js is really impressive in what it can do, but it was pretty tough to get started with as someone who just wanted to pipe shell input/output over HTTP requests to a server. I realize streamlining that usecase is probably out of scope for the Xterm team, but I think there's a space for either some tutorials or a higher-level wrapper library