MCPcopy Create free account
hub / github.com/npkgz/cli-progress / render

Method render

lib/single-bar.js:26–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25 // internal render function
26 render(){
27 // stop timer
28 if (this.timer){
29 clearTimeout(this.timer);
30 this.timer = null;
31 }
32
33 // run internal rendering
34 super.render();
35
36 // add new line in notty mode!
37 if (this.options.noTTYOutput && this.terminal.isTTY() === false){
38 this.terminal.newline();
39 }
40
41 // next update
42 this.timer = setTimeout(this.render.bind(this), this.schedulingRate);
43 }
44
45 update(current, payload){
46 // timer inactive ?

Callers 5

updateMethod · 0.95
startMethod · 0.95
stopMethod · 0.95
updateMethod · 0.45
stopMethod · 0.45

Calls 2

isTTYMethod · 0.80
newlineMethod · 0.80

Tested by

no test coverage detected