// 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 }
func ResizeTerm(rows, cols int) { C.resizeterm(C.int(rows), C.int(cols)) }