deployer: restore cursor on ctrl-c

This commit is contained in:
Yorick van Pelt 2025-03-15 08:26:12 +01:00
parent fb946cce77
commit 7f7e1957b2
Signed by: yorick
GPG key ID: D8D3CC6D951384DE

View file

@ -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()