deployer: restore cursor on ctrl-c
This commit is contained in:
parent
fb946cce77
commit
7f7e1957b2
|
@ -238,4 +238,10 @@ action.register("local", "status", async () => {
|
|||
await action.registry[`${os.hostname()}.status`]()
|
||||
})
|
||||
|
||||
// restore the cursor on ctrl-c
|
||||
process.on("SIGINT", () => {
|
||||
process.stdout.write('\u001B[?25h');
|
||||
process.exit(130)
|
||||
})
|
||||
|
||||
await action.run()
|
||||
|
|
Loading…
Reference in a new issue