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
Copy file name to clipboardExpand all lines: content/runal.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ function setup(c) {
166
166
// just to get a more balenced output.
167
167
// A terminal cell is not a square, so the result can feel
168
168
// squished a little bit.
169
-
c.cellPaddingDouble();
169
+
c.cellModeDouble();
170
170
}
171
171
172
172
function draw(c) {
@@ -285,14 +285,16 @@ Drawing in the terminal is a little bit weird, because each cell is not a square
285
285
One simple way to fix this problem is to **use 2 cells instead of one**for drawing one canvas pixel, but the question is : which character to draw in the second cell?
286
286
287
287
You can control this behavior with2 methods:
288
-
-**c.cellPadding(char)**: it allows you to define which character to use in the second cell. One obvious option is to use a black space, but other choice may give you fun results.
289
-
-**c.cellPaddingDouble()**: it just duplicates the first character.
288
+
-**c.cellModeCustom(char)**: it allows you to define which character to use in the second cell. One obvious option is to use a black space, but other choice may give you fun results.
289
+
-**c.cellModeDouble()**: it just duplicates the first character.
290
290
291
+
#### c.cellModeDefault() <sub>since v0.9.0</sub>
292
+
Makes every cell a single character. This is the default behavior.
0 commit comments