showCursor method

void showCursor({
  1. required bool show,
})

show/hide the cursor

Implementation

void showCursor({required bool show}) {
  if (show) {
    write('${Ansi.esc}?25h');
  } else {
    write('${Ansi.esc}?25l');
  }
}