blob: 2b40c9159d0345d05b58c9c63d9af63d65c6435d (
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
|
#!/bin/rc
rfork n
guifs -s testgui
dir=/mnt/gui
sleep 1
colours=(FF0000 00FF00 0000FF FFFF00 00FFFF FF00FF FFFFFF)
for(colour in $colours){
dir=$dir/`{cat $dir/clone} # Create a new sub element in the gui (for now, always a "container" with a small margin)
echo $colour^FF >> $dir/props/background # Set the background
sleep 1 # Wait a bit
}
# Now do the same, but don't nest the elements
for(colour in $colours){
subdir=$dir/`{cat $dir/clone}
echo $colour^FF >> $subdir/props/background
sleep 1
}
# when the script ends, the old text window draws over the gui :joyd: I will fix that later.
# For now, i just make the script sleep for a long time
sleep 1000000
|