Ansi class
Helper class for ANSI escape sequence detection and management.
This class provides utilities for detecting ANSI support in terminals and managing ANSI escape sequences for text formatting.
Example usage:
if (Ansi.isSupported) {
  print('\x1b[31mRed text\x1b[0m');
} else {
  print('Plain text');
}
See also:
Constructors
- Ansi()
- 
          Factory ctor
            factory
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Properties
- isSupported ↔ bool
- 
  Returns true if stdout supports ANSI escape characters.
  getter/setter pair
Static Methods
- 
  resetEmitAnsi() → void 
- Reset ANSI emission to automatic detection.
- 
  strip(String line) → String 
- 
  Strip all ANSI escape sequences from line.