-
Notifications
You must be signed in to change notification settings - Fork 33
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
Simple echo demo for web terminal? #96
Comments
To piggyback off this, I also think that the latest release should have a simple demo as described above available at http://xtermjs.org/ |
Seems like it would be a good improvement to add an input listener to the quick start 👍 |
Good idea. I'll open up a branch in https://github.com/xtermjs/xtermjs.org. |
Katacoda is available for you if it's useful? Would users to deploy the node sample app without having to configure anything... |
Thanks @BenHall for offering! Can you get into a little bit more details about what would this Node app do? What might be useful would be if each visitor could get an actual Bash terminal connected to the front-end, but this is quite the opposite of the current issue. |
We at CoderPad might be willing to sponsor this demo in the future! We run a shit-ton of containers constantly, anyhow. |
Is this completed? Where can I find it? @parisk I cannot find a branch besides master publicly available on GitHub |
Subscribed for updates regarding this |
We're using a simple client side javascript REPL to demo our |
@LucianBuzzo could you share some more information or some demonstration code. |
@santosh0705 Here is the source code for a simple JS repl tethered to an xterm.js instance https://github.com/resin-io-modules/rendition/blob/master/src/stories/Terminal.js#L44 |
If you want a more elaborate local-echo controller, you could use this : https://github.com/wavesoft/local-echo |
Suggestion:
|
The existing demos I've seen demonstrate socket/pty/node integration with the xterm Terminal control, but what if I have a much simpler use case. I'd like to see a simple client-side-only "echo" demo -- display a prompt, read the user's input and echo it back out.
I see the existing demo alludes to a "fake" terminal which displays a prompt and writes keyboard input, but this does not show me how to read the user's input (especially when it spans multiple lines), how to wire up a standard keyboard shortcut (e.g. ctrl-c), etc.
Also, copy/paste and backspacing across multi-line input does not seem to be working in this scenario out-of-the-box so that would be nice to see too.
The text was updated successfully, but these errors were encountered: