MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / atty_stdin

Function atty_stdin

src/agents/mod.rs:1784–1787  ·  view source on GitHub ↗

Returns true if stdin is connected to a terminal.

()

Source from the content-addressed store, hash-verified

1782
1783/// Returns true if stdin is connected to a terminal.
1784fn atty_stdin() -> bool {
1785 use std::io::IsTerminal;
1786 std::io::stdin().is_terminal()
1787}
1788
1789#[cfg(test)]
1790#[allow(clippy::unwrap_used)]

Callers 1

Calls 1

is_terminalMethod · 0.80

Tested by

no test coverage detected