cli_cursor

Easily toggle the cursor inside command-line apps

Usage

import 'package:cli_cursor/cli_cursor.dart';

Future<void> main() async {
  // Hide the CLI cursor
  CliCursor.hide();

  // Some async operation
  await Future.delayed(Duration(milliseconds: 2000));

  // Show the CLI cursor
  CliCursor.show();
}

Credits

cli_cursor by Sindre Sorhus

Libraries

cli_cursor
This library contains functionality to help toggle CLI cursor easily