cursorDown static method

String cursorDown(
  1. int n
)

Returns an ANSI sequence that moves the cursor down by n rows.

Implementation

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