Add the app's terminal surface: bottom panel, floating window and full-screen page
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -30,6 +32,9 @@ type terminalProcess struct {
|
||||
}
|
||||
|
||||
func newTerminalProcess(record protocol.TerminalRecord) *terminalProcess {
|
||||
var stream [6]byte
|
||||
_, _ = rand.Read(stream[:])
|
||||
record.Stream = hex.EncodeToString(stream[:])
|
||||
return &terminalProcess{
|
||||
record: record,
|
||||
out: newChatShellOutput(protocol.TerminalRetained),
|
||||
|
||||
Reference in New Issue
Block a user