mirror of
https://github.com/syssecfsu/witty.git
synced 2024-11-01 09:39:26 +01:00
wip
This commit is contained in:
parent
8a68bf0c69
commit
b232c09b01
2
main.go
2
main.go
@ -81,6 +81,8 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
//close the terminal and restore the terminal state
|
//close the terminal and restore the terminal state
|
||||||
|
ptmx.Close()
|
||||||
|
|
||||||
if termState != nil {
|
if termState != nil {
|
||||||
term.Restore(int(os.Stdin.Fd()), termState)
|
term.Restore(int(os.Stdin.Fd()), termState)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user