Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
|
A class that models the terminal's channel concept, providing output to stdout. More...
#include <stdout_channel.hpp>
Public Member Functions | |
void | async_read (std::function< void(terminalpp::bytes)> const &) |
Request data from the channel. | |
void | write (terminalpp::bytes data) |
Writes the data to stdout. | |
bool | is_alive () const |
Returns whether the output stream is alive. | |
void | close () |
Requests that the channel be closed. | |
A class that models the terminal's channel concept, providing output to stdout.
Request data from the channel.
A stdout channel does no inputting, so this is silently discarded.
void terminalpp::stdout_channel::close | ( | ) |
Requests that the channel be closed.
For simplicity, a stdout channel cannot be closed, so this is a no-op.
bool terminalpp::stdout_channel::is_alive | ( | ) | const |
Returns whether the output stream is alive.
For simplicity, a stdout channel is always alive.