%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/usr/lib/node_modules/pm2/node_modules/pm2-multimeter/example/
Upload File :
Create Path :
Current File : //proc/self/root/usr/lib/node_modules/pm2/node_modules/pm2-multimeter/example/drop.js

var multimeter = require('multimeter');
var multi = multimeter(process);

multi.on('^C', function () {
    multi.charm.cursor(true);
    multi.write('\n').destroy();
    
    process.exit();
});
multi.charm.cursor(false);

multi.drop(function (bar) {
    var iv = setInterval(function () {
        var p = bar.percent();
        bar.percent(p + 1);
        if (p >= 100) {
            clearInterval(iv);
            
            multi.charm.cursor(true);
            multi.write('\n').destroy();
        }
    }, 25);
});

Zerion Mini Shell 1.0