added pty terminal support to the client side

This commit is contained in:
2025-06-21 02:43:28 +09:00
parent 01eb2edd6e
commit 6baf3b2b53
15 changed files with 748 additions and 35 deletions

17
hodu.go
View File

@ -1,6 +1,7 @@
package hodu
import "crypto/rsa"
import _ "embed"
import "encoding/base64"
import "fmt"
import "net"
@ -116,6 +117,22 @@ type json_out_go_stats struct {
OtherSysBytes uint64 `json:"memory-other-sys-bytes"`
}
// ---------------------------------------------------------
//go:embed xterm.js
var xterm_js []byte
//go:embed xterm-addon-fit.js
var xterm_addon_fit_js []byte
//go:embed xterm.css
var xterm_css []byte
//go:embed xterm.html
var xterm_html string
//go:embed xterm-pts.html
var xterm_pts_html []byte
// ---------------------------------------------------------
func (n *Named) SetName(name string) {
n.name = name
}