diff --git a/Terminal.md b/Terminal.md new file mode 100644 index 0000000..e9ae44c --- /dev/null +++ b/Terminal.md @@ -0,0 +1,10 @@ +This is a full-fledged **xterm** terminal emulator, which runs right in your browser and is based on [xterm.js](https://xtermjs.org). The emulator is connected to a *TerminalHandler* instance on the backend over websockets. + +This event handler spawns a *bash* session and a *pseudoterminal*. It connects the master end of the pty to the emulator running in your browser and the slave end to bash. This essentially provides a fully functional terminal session for your users in the browser (a convenient alternative for an SSH session). + +This terminal is fully under your control: You can write to it (and thus execute commands) and read what commands were executed by the user using the API exposed by the TerminalEventHandler. This enables you to pre-type or execute commands for the user and figure out what they are doing in the terminal. +*** + +**Available commands**: +* [terminal.write](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/terminal.write) +* [history.bash](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/history.bash) \ No newline at end of file