1 xterm.js webclient and helper utility
2 =====================================
4 This repository contains the client and helper utility to use
5 xterm.js (https://xtermjs.org) for Proxmox VE.
7 To be able to relay between the gui and a shell program/console,
8 we need a tool (called termproxy) to open a port (where our websocketproxy
9 connects to) and to open a pty and execute a program
11 From Client to Server it implements a simple packet-based protocol:
12 (everything is a string)
16 where LENGTH is the bytelength of the msg
20 where COLS is the number of columns the client wants to resize to,
21 and ROWS the number of rows, respectively
25 used to keep the connection between client and server alive
26 (we have a timeout of 5 minutes)
28 every other input from the client will be ignored
30 From server to client, the data will simply sent, without any