mirror of
https://github.com/syssecfsu/witty.git
synced 2024-12-25 04:02:36 +01:00
Merge branch 'master' of https://github.com/syssecfsu/web_terminal
This commit is contained in:
commit
4b8a7b064a
15
README.md
15
README.md
@ -8,11 +8,24 @@ window (xterm.js) and create a websocket with the server. On
|
|||||||
the server side, it serves the basic HTML/JS/CSS files and
|
the server side, it serves the basic HTML/JS/CSS files and
|
||||||
websockets (by shovling the data between pty and xterm).
|
websockets (by shovling the data between pty and xterm).
|
||||||
|
|
||||||
It is amazing what you can do with less than 200 lines of go code.
|
It is amazing what you can do with 260 lines of go code.
|
||||||
|
|
||||||
It is just a simple demo in case some people are interested in
|
It is just a simple demo in case some people are interested in
|
||||||
how to setup xterm.js with websocket.
|
how to setup xterm.js with websocket.
|
||||||
|
|
||||||
|
To use the program, download/clone the code, and in the web_terminal
|
||||||
|
directory, run ```go build .```, this will create the binary called
|
||||||
|
web_terminal. To run it, use ```./web_terminal cmd options_to_cmd```.
|
||||||
|
If no cmd and options are given, web_terminal will run bash by default.
|
||||||
|
You can run shells but also single programs, such as htop. The program
|
||||||
|
has been tested on Linux, WSL2, Raspberry Pi 3B (Debian), and MacOSX.
|
||||||
|
|
||||||
|
***known bug***
|
||||||
|
|
||||||
|
On MacOS X, running zsh with web_terminal will produce an extra %
|
||||||
|
each time. Consider it a ___feautre___, will not fix unless there is a
|
||||||
|
pull request.
|
||||||
|
|
||||||
|
|
||||||
**NOTE**
|
**NOTE**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user