AnsiHandler typedef
Handler of terminal sequences. Returns true if the sequence is consumed, false to indicate that the sequence is not completed and no charater is consumed from the queue.
Implementation
typedef AnsiHandler = bool Function(Queue<int>, Terminal);