Пример #1
0
// NoutRefresh indicates that a section of the screen should be redrawn but
// does not update the phsyical screen until Update() is called. See
// Pad.Refresh() for details on the arguments and Window.NoutRefresh for
// more details on the workings of this function
func (p *Pad) NoutRefresh(py, px, sy, sx, h, w int) error {
	ok := C.pnoutrefresh(p.win, C.int(py), C.int(px), C.int(sy),
		C.int(sx), C.int(h), C.int(w))
	if ok != C.OK {
		return errors.New("Failed to refresh pad")
	}
	return nil
}
Пример #2
0
// Same as NoutRefresh, but for pads.
func (window *Window) PnoutRefresh(pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol int) {
	C.pnoutrefresh(window.cwin, C.int(pminrow), C.int(pmincol), C.int(sminrow), C.int(smincol), C.int(smaxrow), C.int(smaxcol))
}