Exemplo n.º 1
0
func Endwin() os.Error {
	in()
	defer out()
	if C.endwin() == 0 {
		return CursesError{"Endwin failed"}
	}
	return nil
}
Exemplo n.º 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()
}
Exemplo n.º 3
0
Arquivo: curses.go Projeto: zennro/fzf
func Endwin() {
	C.endwin()
}
Exemplo n.º 4
0
Arquivo: curses.go Projeto: zennro/fzf
func Close() {
	C.endwin()
	C.swapOutput()
}
Exemplo n.º 5
0
func End() error {
	if C.endwin() == C.ERR {
		return CursesError{"End failed"}
	}
	return nil
}
Exemplo n.º 6
0
func Close() {
	C.endwin()
	C.delscreen(_screen)
}
Exemplo n.º 7
0
func Endwin() error {
	if C.endwin() == 0 {
		return CursesError{"Endwin failed"}
	}
	return nil
}
Exemplo n.º 8
0
func Endwin() error {
	if C.endwin() == ERR {
		return ErrorEndwin
	}
	return nil
}
Exemplo n.º 9
0
func endCurses() {
	C.nocbreak()
	C.echo()
	C.nl()
	C.endwin()
}
Exemplo n.º 10
0
func (r *FullscreenRenderer) Clear() {
	C.clear()
	C.endwin()
}
Exemplo n.º 11
0
func (r *FullscreenRenderer) Close() {
	C.endwin()
	C.delscreen(_screen)
}
Exemplo n.º 12
0
func (r *FullscreenRenderer) Pause() {
	C.endwin()
}
Exemplo n.º 13
0
func Clear() {
	C.clear()
	C.endwin()
}
Exemplo n.º 14
0
func Pause() {
	C.endwin()
}