aboutsummaryrefslogtreecommitdiffstats
path: root/demo/readme.gbd
blob: 1f2c09f87ad53eed0d5f141a57984c9933509b2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# gbos README demo: cold boot -> uname -> ping -> IRC session.
# Run inside tmux, with the hub already up:
#     sudo tools/gbhub --daemon
#     tools/gbdemo demo/readme.gbd
# Produces /tmp/gbos-demo.gbv and demo/gbos-demo.gif.
#
# Every waitfor syncs on REAL screen text (the terminal's WRAM shadow), so
# boot, DHCP and IRC-server timing can vary without breaking the choreography.

spawn --chrome
record /tmp/gbos-demo.gbv 2

# cold boot: kernel dmesg, netd grabs a DHCP lease, then the shell prompt
waitfor "/# " 60
wait 2

slowtype uname -a
waitfor gbos 10
wait 2.5

# ping the gateway (4 echoes, then back to the prompt)
# 4 echoes + summary, back at the prompt
slowtype ping 10.0.0.1
waitfor "/4 received" 20
wait 1.5

# IRC: connect, register, join, say hi, part (server = the hub gateway)
slowtype irc 10.0.0.1 sl0pboy
waitfor "registering" 30
# server intro/MOTD flowing
waitfor "-!-" 60
wait 5

slowtype /join #~blasty
wait 8
slowtype hello from a 8MHz game boy color running gbos
wait 6
slowtype /quit
waitfor "/# " 20
wait 3

recordstop
gif demo/gbos-demo.gif --scale 2
stop