scrollUp static method

String scrollUp(
  1. int n
)

Returns an ANSI sequence to scroll up by n lines.

Implementation

static String scrollUp(int n) => n == 1 ? '\x1b[S' : '\x1b[${n}S';