func (win *Window) Timeout(timeout int) { C.wtimeout((*C.WINDOW)(win), C.int(timeout)) }
// 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)) }
// 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)) }
func (win *Window) Timeout(delay int) { C.wtimeout((*C.WINDOW)(win), C.int(delay)) }