pink/stdin
Types
Values
pub fn is_raw_mode_supported(stdin: Stdin) -> Bool
A boolean flag determining if the current stdin supports set_raw_mode
.
A component using set_raw_mode
might want to use is_raw_mode_supported
to nicely fall back in environments where raw mode is not supported
pub fn set_raw_mode(stdin: Stdin, raw_mode: Bool) -> Nil
See setRawMode.
Ink exposes this function to be able to handle Ctrl+C, that’s why you should use Ink’s set_raw_mode
instead of process.stdin.setRawMode
pub fn stdin(stdin: Stdin) -> dynamic.Dynamic
Get the process.stdin. Useful if your app needs to handle user input