mirror of https://github.com/huashengdun/webssh
Updated README
parent
67a2488fe6
commit
62e6f7746d
19
README.md
19
README.md
|
@ -98,6 +98,25 @@ wssh.reset_encoding();
|
||||||
wssh.send('ls -l');
|
wssh.send('ls -l');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### URL Arguments
|
||||||
|
|
||||||
|
Spport passing arugments by url (hash or search) like following examples:
|
||||||
|
|
||||||
|
Passing form data
|
||||||
|
```bash
|
||||||
|
http://localhost:8888/?hostname=xx&username=yy
|
||||||
|
```
|
||||||
|
|
||||||
|
Passing a terminal background color
|
||||||
|
```bash
|
||||||
|
http://localhost:8888/#bgcolor=green
|
||||||
|
```
|
||||||
|
|
||||||
|
Passing a user defined title
|
||||||
|
```bash
|
||||||
|
http://localhost:8888/?title=my-webssh-server
|
||||||
|
```
|
||||||
|
|
||||||
### Use Docker
|
### Use Docker
|
||||||
|
|
||||||
Start up the app
|
Start up the app
|
||||||
|
|
24
README.rst
24
README.rst
|
@ -103,6 +103,30 @@ Browser console
|
||||||
// send a command to the server
|
// send a command to the server
|
||||||
wssh.send('ls -l');
|
wssh.send('ls -l');
|
||||||
|
|
||||||
|
URL Arguments
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Spport passing arugments by url (hash or search) like following
|
||||||
|
examples:
|
||||||
|
|
||||||
|
Passing form data
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
http://localhost:8888/?hostname=xx&username=yy
|
||||||
|
|
||||||
|
Passing a terminal background color
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
http://localhost:8888/#bgcolor=green
|
||||||
|
|
||||||
|
Passing a user defined title
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
http://localhost:8888/?title=my-webssh-server
|
||||||
|
|
||||||
Use Docker
|
Use Docker
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue