consoleur.core.posix

Consoleur: a package for interaction with character-oriented terminal emulators

Members

Functions

flushStdin
void flushStdin()

Flushes STDIN buffer

flushStdout
bool flushStdout()

Flushes STDOUT buffer

isAttyIn
bool isAttyIn()

Tests whether a STDIN descriptor refers to a terminal

isAttyOut
bool isAttyOut()

Tests whether a STDOUT descriptor refers to a terminal

popStdin
bool popStdin(ref ubyte b)

Reads raw ubyte from stdin

popStdin
ubyte popStdin()

Returns raw ubyte from stdin

pushStdin
bool pushStdin(immutable ubyte b)

Puts back ubyte to STDIN buffer

pushStdin
bool pushStdin(string str)

Puts back string to STDIN buffer

rawStdout
size_t rawStdout(string buffer)

Writes raw data to stdout without buffering

readEscapeSequence
string readEscapeSequence()

Reads escape sequence from STDIN

Manifest constants

STDERR_FILENO
enum STDERR_FILENO;

STERR file descriptor

STDOUT_FILENO
enum STDOUT_FILENO;

STDOUT file descriptor

Structs

Point
struct Point

Console point: row and column

Variables

STDIN_FILENO
int STDIN_FILENO;

STDIN file descriptor

Meta

Authors

Maxim Freck <maxim@freck.pp.ru>