function process(handler, i) {
    if (i > ansiHandler && ansiMatch) {
      return;
    }

    ansiMatch = false;
    text = text.replace(handler.pattern, handler.sub);
  }
extracts real text - not containing:
- `\x1b' - ESC - escape (Ascii 27)
- '\x08' - BS - backspace (Ascii 8)
- `\n` - Newline - linefeed (LF) (ascii 10)
- `\r` - Windows Carriage Return (CR)