示例#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)
	}
}
示例#2
0
文件: curses.go 项目: zozor/gocurse
//Flakey function according to ncurses DOC
func (w *Window) Wsyncdown() {
	C.wsyncdown(w.win)
}
示例#3
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Syncdown() {
	C.wsyncdown((*C.WINDOW)(win))
}