How to use the @boost/terminal.cursor.hide function in @boost/terminal

To help you get started, we’ve selected a few @boost/terminal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github milesj / boost / packages / core / src / Console.ts View on Github external
hideCursor(): this {
    console.warn('Console#hideCursor is deprecated. Use Reporter#hideCursor instead.');

    this.out(cursor.hide);

    return this;
  }
github milesj / boost / packages / core / src / Reporter.ts View on Github external
hideCursor(): this {
    this.console.out(cursor.hide);

    if (!restoreCursorOnExit) {
      restoreCursorOnExit = true;

      process.on('exit', () => {
        process.stdout.write(cursor.show);
      });
    }

    return this;
  }