package ptyimport// InheritSize applies the terminal size of pty to tty. This should be run// in a signal handler for syscall.SIGWINCH to automatically resize the tty when// the pty receives a window size change notification.func (, *os.File) error { , := GetsizeFull()if != nil {return }returnSetsize(, )}// Getsize returns the number of rows (lines) and cols (positions// in each line) in terminal t.func ( *os.File) (, int, error) { , := GetsizeFull()if != nil {return0, 0, }returnint(.Rows), int(.Cols), nil}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.