You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
writer.<spanclass="hljs-title function_">write</span>(<spanclass="hljs-string">"Some text to write..."</span>, <spanclass="hljs-string">"...and some more."</span>)
164
154
writer.<spanclass="hljs-title function_">write</span>(<spanclass="hljs-string">"A new paragraph, if not implicitly present."</span>)
165
155
writer.<spanclass="hljs-title function_">end</span>() <spanclass="hljs-comment">// Close the stream</span></pre>
156
+
<p><code>mode</code> can be set to the following values:</p>
157
+
<ul>
158
+
<li><code>soft</code>: words are broken before the column width, giving a left justified appearance.</li>
159
+
<li><code>hard</code>: words are split at the column width.</li>
160
+
<li><code>keep</code>: lines longer than the column width are kept.</li>
161
+
<li><code>container</code>: left and right margins are ignored, giving a full width line.</li>
162
+
</ul>
166
163
<p>As <code>outStream</code> was specified, wrapped output is written directly to the stream.</p>
167
164
<h3>Images</h3>
168
165
<p>If your terminal suppots them, you can add images into the wrapped output ste</p>
<spanclass="hljs-attr">width</span>: <spanclass="hljs-string">'auto'</span>, <spanclass="hljs-comment">// Number of chars wide you'd like image. 'auto' to take it from the image/set height.</span>
175
172
<spanclass="hljs-attr">height</span>: <spanclass="hljs-number">1</span>, <spanclass="hljs-comment">// Number of lines the image will take</span>
176
-
<spanclass="hljs-attr">space</span>: <spanclass="hljs-string">' '</span><spanclass="hljs-comment">// A text string that is printed under the image so you can flow the wrapped text around it.</span>
173
+
<spanclass="hljs-attr">space</span>: <spanclass="hljs-string">' '</span><spanclass="hljs-comment">// A text string that is printed under the image so you can flow the wrapped text around it.</span>
0 commit comments