hideCursor method

void hideCursor()

Hides the terminal cursor.

You will want to have code wrapped in a try-finally block:

try{
  stdout.hideCursor();
} finally {
  stdout.showCursor();
}

Implementation

void hideCursor() => stdout.write('\x1b[?25l');