mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Fixed termsize_linux.go errors and misnamed termsize_windows.go
This commit is contained in:
parent
f92085bb86
commit
fc1625a0ed
2 changed files with 1 additions and 4 deletions
|
@ -13,9 +13,6 @@ import (
|
||||||
|
|
||||||
// Handle pty resizes (notify server side)
|
// Handle pty resizes (notify server side)
|
||||||
func handleTermResizes(conn *hkexsh.Conn) {
|
func handleTermResizes(conn *hkexsh.Conn) {
|
||||||
rows := 0
|
|
||||||
cols := 0
|
|
||||||
|
|
||||||
ch := make(chan os.Signal, 1)
|
ch := make(chan os.Signal, 1)
|
||||||
signal.Notify(ch, syscall.SIGWINCH)
|
signal.Notify(ch, syscall.SIGWINCH)
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
@ -25,7 +22,7 @@ func handleTermResizes(conn *hkexsh.Conn) {
|
||||||
for range ch {
|
for range ch {
|
||||||
// Query client's term size so we can communicate it to server
|
// Query client's term size so we can communicate it to server
|
||||||
// pty after interactive session starts
|
// pty after interactive session starts
|
||||||
cols, rows, err = GetSize()
|
cols, rows, err := GetSize()
|
||||||
log.Printf("[rows %v cols %v]\n", rows, cols)
|
log.Printf("[rows %v cols %v]\n", rows, cols)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
|
Loading…
Reference in a new issue