UNPKG

molstar

Version:

A comprehensive macromolecular library.

19 lines (18 loc) 613 B
"use strict"; /** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.showProgress = showProgress; exports.clearLine = clearLine; const mol_task_1 = require("../../../mol-task"); function showProgress(p) { process.stdout.write(`\r${new Array(80).join(' ')}`); process.stdout.write(`\r${mol_task_1.Progress.format(p)}`); } function clearLine() { process.stdout.write(`\r${new Array(80).join(' ')}`); process.stdout.write(`\r`); }