UNPKG

molstar

Version:

A comprehensive macromolecular library.

15 lines (14 loc) 500 B
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> */ import { Progress } from '../../../mol-task'; export function showProgress(p) { process.stdout.write("\r".concat(new Array(80).join(' '))); process.stdout.write("\r".concat(Progress.format(p))); } export function clearLine() { process.stdout.write("\r".concat(new Array(80).join(' '))); process.stdout.write("\r"); }