How to use the cli-color.erase function in cli-color

To help you get started, we’ve selected a few cli-color examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github interactivethings / galaxy-of-covers / script / server.js View on Github external
app.listen(options.port, options.host, function (err, result) {
    if (err) { throw err };
    console.log(clc.erase.screen);
    console.log(clc.red(banner));
    console.log(clc.red('> > > >  Galaxy of Covers dev server running at ' + clc.underline('http://' + options.host + ':' + options.port) + '  < < < <') + '\n');
  });
};
github JoshuaWise / better-sqlite3 / benchmark / index.js View on Github external
const erase = () => {
	return clc.move(0, -1) + clc.erase.line;
};
github jesusprubio / bluebox-ng / bin / utils / logger.js View on Github external
module.exports.moveUp = () => {
  process.stdout.write(clc.move.up(1));
  process.stdout.write(clc.erase.line);
};
github StreetStrider / repl.js / src / evaler / evaler.js View on Github external
var
	vm = require('vm'),

	Promise = require('promise'),

	specialColor = require('util').inspect.styles.special,
	clc = require('cli-color'),
	color = clc[specialColor],
	erase = clc.move.up(1) + clc.erase.line;

module.exports = function Evaler (options, console)
{
	var
		vmEvaler,
		noDisplay = { displayErrors: false },
		slowThrs  = 350;


	if (options.useGlobal)
	{
		vmEvaler = function (script)
		{
			return script.runInThisContext(noDisplay);
		}
	}
github firebase / firebase-tools / lib / deploy / hosting / deploy.js View on Github external
.then(function() {
        clearInterval(progressInterval);
        if (!debugging) {
          process.stdout.write(clc.erase.line + clc.move.left(9999));
        }
        utils.logLabeledSuccess("hosting[" + deploy.site + "]", "file upload complete");
        var dt = Date.now() - t0;
        logger.debug("[hosting] deploy completed after " + dt + "ms");
        return track("Hosting Deploy", "success", dt);
      })
      .catch(function(err) {
github StreetStrider / repl.js / src / evaler / instarun.js View on Github external
function clearBeforeOutput ()
	{
		_write(clc.erase.line);
		_write('\n');
		_write(clc.move.up(1));
	}