replacePreviousLine static method

String replacePreviousLine(
  1. String str
)

Use moveUp, concatenate your string (str) and then blank the remaining line.

Implementation

static String replacePreviousLine(String str) =>
    moveUp(1) + str + blankRemaining();