Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@devteks/cursor

mosamuhana14MIT0.0.1TypeScript support: included

Hide, show and toggle terminal cursor

cli cursor, terminal cursor, terminal, cli, show cursor, hide cursor, toggle cursor

readme

@devteks/cursor

Hide, show and toggle terminal cursor

how to use

$ npm install @devteks/cursor --save

Usage:

import:

const { showCursor, hideCursor, toggleCursor } = require('@devteks/cursor');
// OR
import { showCursor, hideCursor, toggleCursor } from '@devteks/cursor';
async function main() {
    hideCursor();
    // process some thing
}

main();
// when the process exits the cursor will be shown again