showCursor method

void showCursor()

Shows the terminal cursor.

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

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

Implementation

void showCursor() => stdout.write('\x1b[?25h');