ansix library

AnsiX is a powerful and easy-to-use library that provides tools and extensions for adding ANSI color and styling support to your Dart & Flutter applications.

Enums

AnsiBorderStyle
AnsiBorderStyle
AnsiBorderType
AnsiBorderType
AnsiGridType
AnsiOrientation
AnsiOrientation
AnsiStyle
AnsiStyle
AnsiTextAlignment
How the text should be aligned horizontally.
BoxDrawingSet
BoxDrawingSet
ColorFormat
Defines whether ANSI colors should be formatted using the terminal code or the RGB value.
GraphicDrawingSet
GraphicDrawingSet
TreeNodeType
TreeNodeType
TriangleSet
TriangleSet

Properties

isDebugMode bool
Returns true when running on Debug mode.
no setter

Functions

alignCenter(int textLength, int width) → (int, int)
buildExceptionMessage(AnsiXException exception) String
handleException(AnsiXException exception) → void
This method is used to handle AnsiXExceptions that are thrown while using AnsiX.
testPrintOutput(Function callback) String
Used for testing the output of a callback that's printed in the console.

Exceptions / Errors

AnsiNotSupported
AnsiXException
Base class for AnsiX exceptions
WindowsLegacyModeError