GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cli/man/keypress.Rd at main · multimeric/cli Expand file tree/ Copy pathkeypress.RdMore file actions 43 lines (43 loc) · 1.23 KB / Copy pathkeypress.RdFile metadata and controls43 lines (43 loc) · 1.23 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 % Generated by roxygen2: do not edit by hand % Please edit documentation in R/keypress.R \name{keypress} \alias{keypress} \title{Read a single keypress at the terminal} \usage{ keypress(block = TRUE) } \arguments{ \item{block}{Whether to wait for a key press, if there is none available now.} } \value{ The key pressed, a character scalar. For non-blocking reads \code{NA} is returned if no keys are available. } \description{ It currently only works at Linux/Unix and OSX terminals, and at the Windows command line. see \code{\link{has_keypress_support}}. } \details{ The following special keys are supported: \itemize{ \item Arrow keys: 'up', 'down', 'right', 'left'. \item Function keys: from 'f1' to 'f12'. \item Others: 'home', 'end', 'insert', 'delete', 'pageup', 'pagedown', 'tab', 'enter', 'backspace' (same as 'delete' on OSX keyboards), 'escape'. \item Control with one of the following keys: 'a', 'b', 'c', 'd', 'e', 'f', 'h', 'k', 'l', 'n', 'p', 't', 'u', 'w'. } } \examples{ \dontshow{if (FALSE) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} x <- keypress() cat("You pressed key", x, "\n") \dontshow{\}) # examplesIf} } \seealso{ Other keypress function: \code{\link{has_keypress_support}()} } \concept{keypress function} |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |