Ejemplo n.º 1
0
// NoutRefresh, or No Output Refresh, flags the window for redrawing but does
// not output the changes to the terminal (screen). Essentially, the output is
// buffered and a call to Update() flushes the buffer to the terminal. This
// function provides a speed increase over calling Refresh() when multiple
// windows are involved because only the final output is
// transmitted to the terminal.
func (w *Window) NoutRefresh() {
	C.wnoutrefresh(w.win)
	return
}
Ejemplo n.º 2
0
func (w *Window) Refresh() {
	C.wnoutrefresh(w.win)
}
Ejemplo n.º 3
0
func (w *CursesWindow) Refresh() {
	C.wnoutrefresh(w.impl)
}
Ejemplo n.º 4
0
/* This function allows for multiple updates with more efficiency than refresh alone. Where you'd have to call refresh multiple times.
Noutrefresh only updates the virtual screen and then the actual screen can be updated by calling Doupdate, which checks all pending changes.
*/
func (window *Window) NoutRefresh() {
	C.wnoutrefresh(window.cwin)
}
Ejemplo n.º 5
0
func RefreshWindows(windows []*Window) {
	for _, w := range windows {
		C.wnoutrefresh(w.win())
	}
	C.doupdate()
}