File: has_keypress_support.Rd

package info (click to toggle)
r-cran-cli 3.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,288 kB
  • sloc: ansic: 16,412; cpp: 37; sh: 13; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (2)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keypress.R
\name{has_keypress_support}
\alias{has_keypress_support}
\title{Check if the current platform/terminal supports reading
single keys.}
\usage{
has_keypress_support()
}
\value{
Whether there is support for waiting for individual
keypressses.
}
\description{
Check if the current platform/terminal supports reading
single keys.
}
\details{
Supported platforms:
\itemize{
\item Terminals in Windows and Unix.
\item RStudio terminal.
}

Not supported:
\itemize{
\item RStudio (if not in the RStudio terminal).
\item R.app on macOS.
\item Rgui on Windows.
\item Emacs ESS.
\item Others.
}
}
\examples{
has_keypress_support()
}
\seealso{
Other keypress function: 
\code{\link{keypress}()}
}
\concept{keypress function}