Module crossterm::tty

source ·
Expand description

A module to query if the current instance is a tty. Making it a little more convenient and safe to query whether something is a terminal teletype or not. This module defines the IsTty trait and the is_tty method to return true if the item represents a terminal.

Traits

  • Adds the is_tty method to types that might represent a terminal