Example #1
0
// ResizeTerm will attempt to resize the terminal. This only has an effect if
// the terminal is in an XWindows (GUI) environment.
func ResizeTerm(nlines, ncols int) error {
	if C.resizeterm(C.int(nlines), C.int(ncols)) == C.ERR {
		return errors.New("Failed to resize terminal")
	}
	return nil
}
Example #2
0
func ResizeTerm(rows, cols int) {
	C.resizeterm(C.int(rows), C.int(cols))
}