How to remove ANSI control chars (VT100) from a Java String
问题 I am working with automation and using Jsch to connect to remote boxes and automate some tasks. I am having problem parsing the command results because sometimes they come with ANSI Control chars. I've already saw this answer and this other one but it does not provide any library to do that. I don't want to reinvent the wheel, if there is any. And I don't feel confident with those answers. Right now, I am trying this, but I am not really sure it's complete enough. reply = reply.replaceAll("\\