UNPKG

319 BTypeScriptView Raw
1/**
2Gracefully restore the CLI cursor on exit.
3
4Prevent the cursor you have hidden interactively from remaining hidden if the process crashes.
5
6It does nothing if run in a non-TTY context.
7
8@example
9```
10import restoreCursor from 'restore-cursor';
11
12restoreCursor();
13```
14*/
15export default function restoreCursor(): void;