Example #1
0
func Endwin() os.Error {
	in()
	defer out()
	if C.endwin() == 0 {
		return CursesError{"Endwin failed"}
	}
	return nil
}
Example #2
0
func Hello(s string) {
	C.initscr()

	p := C.CString(fmt.Sprintf("Hello, %s", s))
	C.Printw(p)
	C.free(unsafe.Pointer(p))

	C.refresh()
	C.getch()
	C.endwin()
}
Example #3
0
File: curses.go Project: zennro/fzf
func Endwin() {
	C.endwin()
}
Example #4
0
File: curses.go Project: zennro/fzf
func Close() {
	C.endwin()
	C.swapOutput()
}
Example #5
0
func End() error {
	if C.endwin() == C.ERR {
		return CursesError{"End failed"}
	}
	return nil
}
Example #6
0
func Close() {
	C.endwin()
	C.delscreen(_screen)
}
Example #7
0
func Endwin() error {
	if C.endwin() == 0 {
		return CursesError{"Endwin failed"}
	}
	return nil
}
Example #8
0
func Endwin() error {
	if C.endwin() == ERR {
		return ErrorEndwin
	}
	return nil
}
Example #9
0
func endCurses() {
	C.nocbreak()
	C.echo()
	C.nl()
	C.endwin()
}
Example #10
0
func (r *FullscreenRenderer) Clear() {
	C.clear()
	C.endwin()
}
Example #11
0
func (r *FullscreenRenderer) Close() {
	C.endwin()
	C.delscreen(_screen)
}
Example #12
0
func (r *FullscreenRenderer) Pause() {
	C.endwin()
}
Example #13
0
func Clear() {
	C.clear()
	C.endwin()
}
Example #14
0
func Pause() {
	C.endwin()
}