fix AnsiEsc on Next/Prev