Skip to main content

current_tty

Function current_tty 

Source
pub fn current_tty() -> bool
Expand description

Whether both stdin and stdout are terminals.

This varies because consent is machine-scoped: a decision recorded on a TTY authorizes later headless runs on the same home.