added pty terminal support to the client side
This commit is contained in:
17
hodu.go
17
hodu.go
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user