terminalLine static method

String terminalLine(
  1. String line
)

Prepares a line of the output of a command to be shown in the terminal

The escape sequences are removed, since the cursor movements of a command would break the output of the reporter, and the tabs are replaced, since their width depends on the terminal

Implementation

static String terminalLine(String line) {
  return Mansil.strip(line).replaceAll("\t", "    ").trimRight();
}