moveUp static method

String moveUp(
  1. int n
)

The reverse of '\n'. Goes to the beginning of the previous line.

Implementation

static String moveUp(int n) => '\u001b[${n}A';