now preventing async readline clutter

This commit is contained in:
2016-06-10 06:08:03 +02:00
parent 846bcf66db
commit 295e568097
2 changed files with 14 additions and 1 deletions

View File

@ -31,6 +31,12 @@ export let start = function(moduleNameArg:string = "",loaderLengthArg:string = "
export let stop = function(){
if(doAnimation){
earlyChild.kill();
let rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.write(null, {ctrl: true, name: 'u'});
rl.close();
}
};