insertLine static method

String insertLine(
  1. int n
)

Returns an ANSI sequence to insert n lines.

Implementation

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