示例#1
0
// MoveGetChar moves the cursor to the given position and gets a character
// from the input stream
func (w *Window) MoveGetChar(y, x int) Key {
	return Key(C.mvwgetch(w.win, C.int(y), C.int(x)))
}
示例#2
0
文件: curses.go 项目: srm88/gocurse
func (win *Window) MvGetch(x, y int) int {
	return int(C.mvwgetch((*C.WINDOW)(win), C.int(y), C.int(x)))
}