This commit is contained in:
nobug
2023-12-10 23:32:32 +08:00
parent 5622856f33
commit 74b76ab60e
4 changed files with 29 additions and 3 deletions

View File

@ -1,5 +1,5 @@
export default function waitAnyKey() {
console.log('Press any key to continue...');
export default function waitAnyKey(message: string) {
console.log(message);
return new Promise(resolve => {
process.stdin.setRawMode(true);
process.stdin.resume();