insertCharacter static method

String insertCharacter(
  1. int n
)

Returns an ANSI sequence to insert n characters.

Implementation

static String insertCharacter(int n) => n == 1 ? '\x1b[@' : '\x1b[$n@';