Beispiel #1
0
func (win *Window) Timeout(timeout int) {
	C.wtimeout((*C.WINDOW)(win), C.int(timeout))
}
Beispiel #2
0
// Sets read timeout for specific window; if negative input will block.
func (win *Window) Timeout(d time.Duration) {
	C.wtimeout(win.cwin, C.int(d/time.Millisecond))
}
Beispiel #3
0
// Timeout sets the window to blocking or non-blocking read mode. Calls to
// GetCh will behave in the following manor depending on the value of delay:
// <= -1 - blocking mode is set (blocks indefinately)
// ==  0 - non-blocking; returns zero (0)
// >=  1 - blocks for delay in milliseconds; returns zero (0)
func (w *Window) Timeout(delay int) {
	C.wtimeout(w.win, C.int(delay))
}
Beispiel #4
0
func (win *Window) Timeout(delay int) {
	C.wtimeout((*C.WINDOW)(win), C.int(delay))
}