ae.sys.term

Basic cross-platform color output

Members

Classes

ANSITerm
class ANSITerm

ANSI escape sequence based terminal.

DumbTerm
class DumbTerm

No color, only text output.

FileTerm
class FileTerm

Base class for File-based terminal implementations.

NullTerm
class NullTerm

No output (including text). (See DumbTerm for text-only output).

Term
class Term

Base class for a terminal implementation. The interface only contains the common subset of features available on both platforms (Windows API and ANSI).

WindowsTerm
class WindowsTerm

Windows API based terminal.

Functions

isTerm
bool isTerm(File f)

Returns whether the given file is likely to be attached to a terminal.

main
void main()
Undocumented in source. Be warned that the author may not have intended to support it.
makeTerm
Term makeTerm(File f)

Choose a suitable terminal implementation for the given file, create and return it.

Properties

term
Term term [@property getter]

Get or set a Term implementation for the current thread (creating one if necessary).

term
Term term [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>