Skip to content

Commit bb2043c

Browse files
committed
docs: add rows/columns example tapes
Adds demo tapes for Set Rows and Set Columns (individually and combined) and documents them in examples/settings/README.md, matching the existing width/height example pattern.
1 parent 8b79d0f commit bb2043c

7 files changed

Lines changed: 124 additions & 0 deletions

File tree

examples/settings/README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,68 @@ Type "I'm a big teapot"
3232
Sleep 1s
3333
```
3434

35+
### Rows
36+
37+
<img width="600" src="./rows.gif" />
38+
39+
```
40+
Output examples/settings/rows.gif
41+
42+
Set Width 475
43+
Set Rows 8
44+
Set FontSize 32
45+
46+
# Fill the terminal with a line-numbered count. Since it's cleared
47+
# first, the count fills the frame edge-to-edge with nothing else
48+
# on screen: exactly 8 lines for 8 rows, no more, no less. The
49+
# last line skips its trailing newline so the terminal doesn't
50+
# scroll once more to make room for the next prompt.
51+
Type "clear; for i in $(seq 1 7); do echo $i; done; printf 8; sleep 5"
52+
Enter
53+
54+
Sleep 2s
55+
```
56+
57+
### Columns
58+
59+
<img width="600" src="./columns.gif" />
60+
61+
```
62+
Output examples/settings/columns.gif
63+
64+
Set Height 400
65+
Set Columns 30
66+
Set FontSize 32
67+
68+
# Print a 30-character ruler after clearing. It touches the left
69+
# and right edges of the frame exactly, with no wrap: 30 columns.
70+
Type "clear; printf '%030d\n' 0 | tr '0' '#'; sleep 5"
71+
Enter
72+
73+
Sleep 2s
74+
```
75+
76+
### Rows and Columns
77+
78+
<img width="600" src="./rows-columns.gif" />
79+
80+
```
81+
Output examples/settings/rows-columns.gif
82+
83+
Set FontSize 32
84+
Set Rows 10
85+
Set Columns 40
86+
87+
# A 40-char ruler as the first line proves the column count, and
88+
# it plus 9 more numbered lines below it fill the frame exactly
89+
# top to bottom, proving all 10 rows. The last line skips its
90+
# trailing newline so the terminal doesn't scroll for a new prompt.
91+
Type "clear; printf '%040d\n' 0 | tr '0' '#'; for i in $(seq 1 8); do echo $i; done; printf 9; sleep 5"
92+
Enter
93+
94+
Sleep 2s
95+
```
96+
3597
### Font Family
3698

3799
<img width="600" src="./set-font-family.gif" />

examples/settings/columns.gif

Lines changed: 3 additions & 0 deletions
Loading

examples/settings/columns.tape

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Output examples/settings/columns.gif
2+
3+
Set Height 400
4+
Set Columns 30
5+
Set FontSize 32
6+
7+
# A count from 1 to 30, one digit per column, touches the left and
8+
# right edges of the frame exactly with no wrap: 30 columns.
9+
Hide
10+
Type "clear; echo 123456789012345678901234567890"
11+
Show
12+
13+
Sleep 1s
14+
Enter
15+
16+
Sleep 2s

examples/settings/rows-columns.gif

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Output examples/settings/rows-columns.gif
2+
3+
Set FontSize 32
4+
Set Rows 10
5+
Set Columns 40
6+
7+
# A count from 1 to 40 as the first line proves the column count,
8+
# and it plus 9 more numbered lines below it fill the frame exactly
9+
# top to bottom, proving all 10 rows. The last line skips its
10+
# trailing newline so the returning prompt lands on the same line
11+
# instead of scrolling everything up by one.
12+
Hide
13+
Type "clear; echo 1234567890123456789012345678901234567890; echo Line 2; echo Line 3; echo Line 4; echo Line 5; echo Line 6; echo Line 7; echo Line 8; echo Line 9; printf 'Line 10'"
14+
Show
15+
16+
Sleep 1s
17+
Enter
18+
19+
Sleep 2s

examples/settings/rows.gif

Lines changed: 3 additions & 0 deletions
Loading

examples/settings/rows.tape

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Output examples/settings/rows.gif
2+
3+
Set Width 475
4+
Set Rows 8
5+
Set FontSize 32
6+
7+
# Eight lines of "Line N", filling the frame edge to edge: exactly
8+
# 8 lines for 8 rows, no more, no less. The last one skips its
9+
# trailing newline so the returning prompt lands on the same line
10+
# instead of scrolling everything up by one.
11+
Hide
12+
Type "clear; echo Line 1; echo Line 2; echo Line 3; echo Line 4; echo Line 5; echo Line 6; echo Line 7; printf 'Line 8'"
13+
Show
14+
15+
Sleep 1s
16+
Enter
17+
18+
Sleep 2s

0 commit comments

Comments
 (0)