Esempio n. 1
0
//Flakey function according to ncurses DOC
func (w *Window) Syncok(bf bool) error {
	var bfint int
	if bf {
		bfint++
	}

	if C.syncok(w.win, C.int(bfint)) == ERR {
		return ErrorWindowSyncok
	}
	return nil
}
Esempio n. 2
0
func (win *Window) Syncok(b bool) error {
	if C.syncok((*C.WINDOW)(win), bool2cint(b)) == C.ERR {
		return CursesError{"syncok failed"}
	}
	return nil
}