From 474d3f97f6633c7dfe52d4e0337078ed8226759a Mon Sep 17 00:00:00 2001 From: Sean Chen Date: Tue, 28 Jul 2020 20:39:47 -0500 Subject: [PATCH] Update record.js Change the console.log tip for exiting on windows. --- commands/record.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/record.js b/commands/record.js index 6ba3a71..d1a93e7 100644 --- a/commands/record.js +++ b/commands/record.js @@ -226,7 +226,11 @@ function command(argv) { var onInput = ptyProcess.write.bind(ptyProcess); console.log('The recording session is started'); - console.log('Press', di.chalk.green('CTRL+D'), 'to exit and save the recording'); + if (di.os.platform() === 'win32') { + console.log('Type', di.chalk.green('exit'), 'to exit and save the recording'); + } else { + console.log('Press', di.chalk.green('CTRL+D'), 'to exit and save the recording'); + } // Input and output capturing and redirection process.stdin.on('data', onInput);