module
Crowbar::CLI::PlatformIO
Overview
Low-level platform stream abstraction for non-blocking stdin inspection
Defined in:
crowbar/cli/platform_io.crClass Method Summary
-
.has_data?(io : IO) : Bool
Checks whether an input IO stream has data available to read without blocking
-
.tty?(io : IO) : Bool
Checks whether an IO stream is connected to an interactive terminal/TTY
Class Method Detail
def self.has_data?(io : IO) : Bool
#
Checks whether an input IO stream has data available to read without blocking
def self.tty?(io : IO) : Bool
#
Checks whether an IO stream is connected to an interactive terminal/TTY