diff --git a/lib/init.js b/lib/init.js index d4cbee2f7..50e3bbc47 100755 --- a/lib/init.js +++ b/lib/init.js @@ -349,6 +349,12 @@ exports.init = function(config) { rli.on('line', sm.onLine.bind(sm)); + // clean colors + rli.on('SIGINT', function() { + rli.write(colors.END + '\n'); + process.exit(0); + }); + sm.process(questions, function(answers) { var cwd = process.cwd(); var configFile = config.configFile || 'karma.conf.js';