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

Method lineWrapping

lib/terminal.js:133–145  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

131
132 // control line wrapping
133 lineWrapping(enabled){
134 if (!this.stream.isTTY){
135 return;
136 }
137
138 // store state
139 this.linewrap = enabled;
140 if (enabled){
141 this.stream.write('\x1B[?7h');
142 }else{
143 this.stream.write('\x1B[?7l');
144 }
145 }
146
147 // tty environment ?
148 isTTY(){

Callers 4

createMethod · 0.80
stopMethod · 0.80
startMethod · 0.80
stopMethod · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected