Returns an ANSI sequence that moves the cursor up by n rows.
n
static String cursorUp(int n) => n == 1 ? '\x1b[A' : '\x1b[${n}A';