Fixes for MSYS Windows build (client)

This commit is contained in:
Russ Magee 2018-07-06 13:25:28 -07:00
parent 94e06abbcb
commit a3367fc6ae
1 changed files with 3 additions and 3 deletions

View File

@ -6,11 +6,11 @@ import (
"log"
"time"
hkexsh "blitter.com/go/hkexsh"
"blitter.com/go/hkexsh/hkexnet"
)
// Handle pty resizes (notify server side)
func handleTermResizes(conn *hkexsh.Conn) {
func handleTermResizes(conn *hkexnet.Conn) {
var hasStty bool
curCols, curRows := 0, 0
_, _, err := GetSize()
@ -57,7 +57,7 @@ func handleTermResizes(conn *hkexsh.Conn) {
log.Println(err)
}
termSzPacket := fmt.Sprintf("%d %d", curRows, curCols)
conn.WritePacket([]byte(termSzPacket), hkexsh.CSOTermSize)
conn.WritePacket([]byte(termSzPacket), hkexnet.CSOTermSize)
}
}
}()