Use index instead of removeAt to process Ansi codes (#1848)
Use index instead of removeAt to process Ansi codes (#1848)

* Use index instead of removeAt to process Ansi codes

* Remove accidentally committed changes
flutter/devtools,flutter/devtools,flutter/devtools,flutter/devtools,flutter/devtools,flutter/devtools,flutter/devtools,flutter/devtools,flutter/devtools