-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
32 lines (23 loc) · 952 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
xterm.js webclient and helper utility
=====================================
This repository contains the client and helper utility to use
xterm.js (https://xtermjs.org) for Proxmox VE.
To be able to relay between the gui and a shell program/console,
we need a tool (called termproxy) to open a port (where our websocketproxy
connects to) and to open a pty and execute a program
From Client to Server it implements a simple packet-based protocol:
(everything is a string)
* Normal Message
0:LENGTH:MSG
where LENGTH is the bytelength of the msg
* Resize Message
1:COLS:ROWS:
where COLS is the number of columns the client wants to resize to,
and ROWS the number of rows, respectively
* Ping Message
2
used to keep the connection between client and server alive
(we have a timeout of 5 minutes)
every other input from the client will be ignored
From server to client, the data will simply sent, without any
format