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

clear() is not working #7

Open
faressoft opened this issue Jul 7, 2018 · 2 comments
Open

clear() is not working #7

faressoft opened this issue Jul 7, 2018 · 2 comments

Comments

@faressoft
Copy link

faressoft commented Jul 7, 2018

#!/usr/bin/env node

var columns = require('columns').create();

var column1 = columns.addColumn('A1');
var column2 = columns.addColumn('A2');
var column3 = columns.addColumn('A3');

setInterval(function() {
  
  column1.clear();
  column2.clear();
  column3.clear();
  column1.write('Lorem ipsum dolor sit amet\n');
  column2.write('Lorem ipsum dolor sit amet\n');
  column3.write('Lorem ipsum dolor sit amet\n');
    
}, 500);
@arjunmehta
Copy link
Owner

Thank you for the report. I’ll look into it.
In the meantime feel free to investigate the code and contribute if you feel called to :)

@aaafgcfg
Copy link

had same error, solved with
var columns = require('columns').create({flow_mode: 'reset'});

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

3 participants