Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird caracters show up before progress bar #4

Open
AntoineABI opened this issue Aug 6, 2016 · 1 comment
Open

Weird caracters show up before progress bar #4

AntoineABI opened this issue Aug 6, 2016 · 1 comment

Comments

@AntoineABI
Copy link

  • node v 6.3.0
  • inside a fiber or not...
  • when doing a console.log after progress ended
  • have weird "�[-1;1" showing up before the progress bar and messing up all the formating (line is wrapped)

Here is a sample code to reproduce it (using sync module for fiber).
Actually it does the same to me even outside a fiber!

let Sync = require('sync');
let ProgressBar = require('ascii-progress');

Sync(function () {

    let bar = new ProgressBar({
        schema: ':bar',
        total: 100
    });

    var iv = setInterval(function () {
        bar.tick();
        if (bar.completed) {
            clearInterval(iv);
            console.log('woops!');
        }
    }, 10);
});

End up in:

�[-1;1H▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇
woops!

@AntoineABI
Copy link
Author

And btw this node module has an issue with installation.
Error: Cannot find module './build/release/pos'
It happens on require because the Release folder initially begin with a capital, I suppose it works fine on windows systems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant