mirror of
https://codeberg.org/Kankys/NewLukasBlog.git
synced 2026-11-11 14:14:36 +01:00
OpravyPoAI
This commit is contained in:
1 parent
99aa797101
commit
24fd53c94c
4746 files changed
+700320
-12
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
import process from 'node:process';
|
||||
import onetime from 'onetime';
|
||||
import {onExit} from 'signal-exit';
|
||||
|
||||
const terminal = process.stderr.isTTY
|
||||
? process.stderr
|
||||
: (process.stdout.isTTY ? process.stdout : undefined);
|
||||
|
||||
const restoreCursor = terminal ? onetime(() => {
|
||||
onExit(() => {
|
||||
terminal.write('\u001B[?25h');
|
||||
}, {alwaysLast: true});
|
||||
}) : () => {};
|
||||
|
||||
export default restoreCursor;
|
||||
Reference in new issue
Block a user