Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/env_logger/src/fmt/writer/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 768 B image not shown  

Quelle  atty.rs

  Sprache: Rust
 

/*
This internal module contains the terminal detection implementation.

If the `auto-color` feature is enabled then we detect whether we're attached to a particular TTY.
Otherwise, assume we're not attached to anything. This effectively prevents styles from being
printed.
*/


#[cfg(feature = "auto-color")]
mod imp {
    use is_terminal::IsTerminal;

    pub(in crate::fmt) fn is_stdout() -> bool {
        std::io::stdout().is_terminal()
    }

    pub(in crate::fmt) fn is_stderr() -> bool {
        std::io::stderr().is_terminal()
    }
}

#[cfg(not(feature = "auto-color"))]
mod imp {
    pub(in crate::fmt) fn is_stdout() -> bool {
        false
    }

    pub(in crate::fmt) fn is_stderr() -> bool {
        false
    }
}

pub(in crate::fmt) use self::imp::*;

Messung V0.5 in Prozent
C=98 H=100 G=98

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-06-21) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.