term_glyph library

Classes

GlyphSet
A class that provides access to every configurable glyph.

Constants

asciiGlyphs → const GlyphSet
A GlyphSet that always returns ASCII glyphs.
unicodeGlyphs → const GlyphSet
A GlyphSet that always returns Unicode glyphs.

Properties

ascii bool
Whether the glyph getters return plain ASCII, as opposed to Unicode characters or sequences.
getter/setter pair
bottomLeftCorner String
The lower left-hand corner of a box.
no setter
bottomLeftCornerBold String
The bold lower left-hand corner of a box.
no setter
bottomLeftCornerDouble String
The double lower left-hand corner of a box.
no setter
bottomRightCorner String
The lower right-hand corner of a box.
no setter
bottomRightCornerBold String
The bold lower right-hand corner of a box.
no setter
bottomRightCornerDouble String
The double lower right-hand corner of a box.
no setter
bullet String
A bullet point.
no setter
cross String
An intersection of vertical and horizontal box lines.
no setter
crossBold String
An intersection of bold vertical and horizontal box lines.
no setter
crossDouble String
An intersection of double vertical and horizontal box lines.
no setter
downArrow String
A downwards-pointing arrow.
no setter
downEnd String
The bottom half of a vertical box line.
no setter
downEndBold String
The bottom half of a bold vertical box line.
no setter
glyphs GlyphSet
Returns asciiGlyphs if ascii is true or unicodeGlyphs otherwise.
no setter
horizontalLine String
A horizontal line that can be used to draw a box.
no setter
horizontalLineBold String
A bold horizontal line that can be used to draw a box.
no setter
horizontalLineDouble String
A double horizontal line that can be used to draw a box.
no setter
horizontalLineDoubleDash String
A dashed horizontal line that can be used to draw a box.
no setter
horizontalLineDoubleDashBold String
A bold dashed horizontal line that can be used to draw a box.
no setter
horizontalLineQuadrupleDash String
A dashed horizontal line that can be used to draw a box.
no setter
horizontalLineQuadrupleDashBold String
A bold dashed horizontal line that can be used to draw a box.
no setter
horizontalLineTripleDash String
A dashed horizontal line that can be used to draw a box.
no setter
horizontalLineTripleDashBold String
A bold dashed horizontal line that can be used to draw a box.
no setter
leftArrow String
A left-pointing arrow.
no setter
leftEnd String
The left half of a horizontal box line.
no setter
leftEndBold String
The left half of a bold horizontal box line.
no setter
longLeftArrow String
A two-character left-pointing arrow.
no setter
longRightArrow String
A two-character right-pointing arrow.
no setter
rightArrow String
A right-pointing arrow.
no setter
rightEnd String
The right half of a horizontal box line.
no setter
rightEndBold String
The right half of a bold horizontal box line.
no setter
teeDown String
A horizontal box line with a vertical line going down from the middle.
no setter
teeDownBold String
A bold horizontal box line with a vertical line going down from the middle.
no setter
teeDownDouble String
A double horizontal box line with a vertical line going down from the middle.
no setter
teeLeft String
A vertical box line with a horizontal line going left from the middle.
no setter
teeLeftBold String
A bold vertical box line with a horizontal line going left from the middle.
no setter
teeLeftDouble String
A double vertical box line with a horizontal line going left from the middle.
no setter
teeRight String
A vertical box line with a horizontal line going right from the middle.
no setter
teeRightBold String
A bold vertical box line with a horizontal line going right from the middle.
no setter
teeRightDouble String
A double vertical box line with a horizontal line going right from the middle.
no setter
teeUp String
A horizontal box line with a vertical line going up from the middle.
no setter
teeUpBold String
A bold horizontal box line with a vertical line going up from the middle.
no setter
teeUpDouble String
A double horizontal box line with a vertical line going up from the middle.
no setter
topLeftCorner String
The upper left-hand corner of a box.
no setter
topLeftCornerBold String
The bold upper left-hand corner of a box.
no setter
topLeftCornerDouble String
The double upper left-hand corner of a box.
no setter
topRightCorner String
The upper right-hand corner of a box.
no setter
topRightCornerBold String
The bold upper right-hand corner of a box.
no setter
topRightCornerDouble String
The double upper right-hand corner of a box.
no setter
upArrow String
An upwards-pointing arrow.
no setter
upEnd String
The top half of a vertical box line.
no setter
upEndBold String
The top half of a bold vertical box line.
no setter
verticalLine String
A vertical line that can be used to draw a box.
no setter
verticalLineBold String
A bold vertical line that can be used to draw a box.
no setter
verticalLineDouble String
A double vertical line that can be used to draw a box.
no setter
verticalLineDoubleDash String
A dashed vertical line that can be used to draw a box.
no setter
verticalLineDoubleDashBold String
A bold dashed vertical line that can be used to draw a box.
no setter
verticalLineQuadrupleDash String
A dashed vertical line that can be used to draw a box.
no setter
verticalLineQuadrupleDashBold String
A bold dashed vertical line that can be used to draw a box.
no setter
verticalLineTripleDash String
A dashed vertical line that can be used to draw a box.
no setter
verticalLineTripleDashBold String
A bold dashed vertical line that can be used to draw a box.
no setter

Functions

glyphOrAscii(String glyph, String alternative) String
Returns glyph if Unicode glyph are allowed, and alternative if they aren't.