Пример #1
0
func (win *Window) Intrflush(b bool) error {
	a := bool2cint(b)
	if C.intrflush((*C.WINDOW)(win), a) == C.ERR {
		return CursesError{"intrflush failed"}
	}
	return nil
}
Пример #2
0
func initCurses() {
	C.initscr()
	C.cbreak()
	C.noecho()
	C.nonl()
	C.intrflush(C.stdscr, true)
	C.keypad(C.stdscr, false)
}