示例#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
}
示例#2
0
文件: curses.go 项目: infokiller/fzf
func (w *Window) Refresh() {
	C.wnoutrefresh(w.win)
}
示例#3
0
文件: ncurses.go 项目: junegunn/fzf
func (w *CursesWindow) Refresh() {
	C.wnoutrefresh(w.impl)
}
示例#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)
}
示例#5
0
func RefreshWindows(windows []*Window) {
	for _, w := range windows {
		C.wnoutrefresh(w.win())
	}
	C.doupdate()
}