mirror of https://github.com/sbt/sbt.git
This commit adds a number of functions for stripping ansi escape characters and/or finding the position of the cursor in a line that may contain colors and moves. The motivation for EscHelpers.cursorPosition is that when printing progress lines, we need to know the visual dimensions of the last line printed to the prompt. The EscHelpers.stripColorsAndMoves can be used to remove all ansi escape sequences. Finally EscHelpers.stripMoves leaves colors but strips out all other escape sequences. This is so we can reprint the terminal prompt during supershell. If we didn't strip out the escape sequences, we could inadvertently blow away everything below the cursor in cases where we actually want the lines below the cursor to persist. |
||
|---|---|---|
| .. | ||
| util-collection | ||
| util-complete | ||
| util-control | ||
| util-interface/src/main/java/xsbti | ||
| util-logging | ||
| util-logic/src | ||
| util-position/src | ||
| util-relation/src | ||
| util-scripted/src/main | ||