📅  最后修改于: 2022-03-11 15:02:43.883000             🧑  作者: Mango
export const detectKeyboard = () => {
process.openStdin().on('keypress', function (_, key) {
if (key && key.name === 'c' && key.ctrl) {
deleteData()
process.exit()
}
})
}