This commit is contained in:
Zhi Wang 2022-01-05 21:33:11 -05:00
parent 8a68bf0c69
commit b232c09b01

View File

@ -81,6 +81,8 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
defer func() {
//close the terminal and restore the terminal state
ptmx.Close()
if termState != nil {
term.Restore(int(os.Stdin.Fd()), termState)
}