mirror of https://gogs.blitter.com/RLabs/xs
				
				
				
			Fixes for MSYS Windows build (client)
This commit is contained in:
		
							parent
							
								
									94e06abbcb
								
							
						
					
					
						commit
						a3367fc6ae
					
				| 
						 | 
					@ -6,11 +6,11 @@ import (
 | 
				
			||||||
	"log"
 | 
						"log"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	hkexsh "blitter.com/go/hkexsh"
 | 
						"blitter.com/go/hkexsh/hkexnet"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Handle pty resizes (notify server side)
 | 
					// Handle pty resizes (notify server side)
 | 
				
			||||||
func handleTermResizes(conn *hkexsh.Conn) {
 | 
					func handleTermResizes(conn *hkexnet.Conn) {
 | 
				
			||||||
	var hasStty bool
 | 
						var hasStty bool
 | 
				
			||||||
	curCols, curRows := 0, 0
 | 
						curCols, curRows := 0, 0
 | 
				
			||||||
	_, _, err := GetSize()
 | 
						_, _, err := GetSize()
 | 
				
			||||||
| 
						 | 
					@ -57,7 +57,7 @@ func handleTermResizes(conn *hkexsh.Conn) {
 | 
				
			||||||
					log.Println(err)
 | 
										log.Println(err)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				termSzPacket := fmt.Sprintf("%d %d", curRows, curCols)
 | 
									termSzPacket := fmt.Sprintf("%d %d", curRows, curCols)
 | 
				
			||||||
				conn.WritePacket([]byte(termSzPacket), hkexsh.CSOTermSize)
 | 
									conn.WritePacket([]byte(termSzPacket), hkexnet.CSOTermSize)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue