cursorForward static method

String cursorForward(
  1. int n
)

Returns an ANSI sequence that moves the cursor forward by n columns.

Implementation

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