示例#1
0
// Move the cursor to the specified coordinates within the window
func (w *Window) Move(y, x int) {
	C.wmove(w.win, C.int(y), C.int(x))
	return
}
示例#2
0
// Normally Y is the first parameter passed in curses.
func (win *Window) Move(x, y int) {
	C.wmove((*C.WINDOW)(win), C.int(y), C.int(x))
}
示例#3
0
文件: curses.go 项目: zozor/gocurse
// Normally Y is the first parameter passed in curses.
func (w *Window) MoveCursor(x, y int) error {
	if C.wmove(w.win, C.int(y), C.int(x)) == ERR {
		return ErrorWindowMove
	}
	return nil
}
示例#4
0
文件: curses.go 项目: infokiller/fzf
func (w *Window) Move(y int, x int) {
	C.wmove(w.win, C.int(y), C.int(x))
}
示例#5
0
func (window *Window) Move(y, x int) {
	C.wmove(window.cwin, C.int(y), C.int(x))
}
示例#6
0
func (win *Window) Move(y, x int) {
	C.wmove((*C.WINDOW)(win), C.int(y), C.int(x))
	return
}
示例#7
0
文件: ncurses.go 项目: junegunn/fzf
func (w *CursesWindow) Move(y int, x int) {
	C.wmove(w.impl, C.int(y), C.int(x))
}
示例#8
0
// Non-atomic move, needs to be called by atomic funcs in order to prevent deadlocks.
func (win *Window) move(x, y int) {
	// Y normally is the first parameter
	C.wmove((*C.WINDOW)(win), C.int(y), C.int(x))
}
示例#9
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Move(y, x int) error {
	if C.wmove((*C.WINDOW)(win), C.int(y), C.int(x)) == C.ERR {
		return CursesError{"wmove failed"}
	}
	return nil
}