(s, rawWrite=false)
| 121 | // write content to output stream |
| 122 | // @TODO use string-width to strip length |
| 123 | write(s, rawWrite=false){ |
| 124 | // line wrapping enabled ? trim output |
| 125 | if (this.linewrap === true && rawWrite === false){ |
| 126 | this.stream.write(s.substr(0, this.getWidth())); |
| 127 | }else{ |
| 128 | this.stream.write(s); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // control line wrapping |
| 133 | lineWrapping(enabled){ |
no test coverage detected