Beispiel #1
0
// Sync updates all parent or child windows which were created via
// SubWindow() or DerivedWindow(). Argument can be one of: SYNC_DOWN, which
// syncronizes all parent windows (done by Refresh() by default so should
// rarely, if ever, need to be called); SYNC_UP, which updates all child
// windows to match any updates made to the parent; and, SYNC_CURSOR, which
// updates the cursor position only for all windows to match the parent window
func (w *Window) Sync(sync int) {
	switch sync {
	case SYNC_DOWN:
		C.wsyncdown(w.win)
	case SYNC_CURSOR:
		C.wcursyncup(w.win)
	case SYNC_UP:
		C.wsyncup(w.win)
	}
}
Beispiel #2
0
//Flakey function according to ncurses DOC
func (w *Window) Wsyncup() {
	C.wsyncup(w.win)
}
Beispiel #3
0
func (win *Window) Syncup() {
	C.wsyncup((*C.WINDOW)(win))
}