closeout/restore-cursor
Every export of closeout/restore-cursor, with its signature and doc comment: restoreCursor.
import restoreCursor from 'closeout/restore-cursor';Functions
default
The default export, declared as restoreCursor.
Arrange for the cursor to be shown again however this process ends.
A no-op when neither stream is a terminal: writing escape sequences into a pipe corrupts the output the pipe exists to carry, and the incumbent's fourth case asserts exactly that nothing is written.
The handler goes in the restore phase, which is closeout's answer to upstream's
{ alwaysLast: true } and a stronger one: alwaysLast is a two-bucket sort over
registration order, while a phase is a named position that every other handler — including
a plugin's (plugin.ts) — is ordered against by declaration rather than by import order.
function restoreCursor(): void;Returns void
closeout/plugin
Every export of closeout/plugin, with its signature and doc comment: validate, register, reset, registered, contributions, attach and 3 more, plus 5 types.
closeout/exit-hook
Every export of closeout/exit-hook, with its signature and doc comment: asyncExitHook, gracefulExit, exitHook, plus 3 types.