示例#1
0
/* Touches the window, indicating that it needs to be refreshed. It is also required to keep the standard screen from becoming useless once windows become involved (handled by NewWindow) */
func (w *Window) Touch() {
	C.touchwin((*C.WINDOW)(w))
}
示例#2
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Touchwin() error {
	if C.touchwin((*C.WINDOW)(win)) == C.ERR {
		return CursesError{"touchwin failed"}
	}
	return nil
}