scrollDown static method

String scrollDown(
  1. int n
)

Returns an ANSI sequence to scroll down by n lines.

Implementation

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