aboutsummaryrefslogtreecommitdiffstats
path: root/initrd/init
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-03-01 13:03:40 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-03-01 13:03:40 -0500
commit51b884c44c858aa56aae6675a2c3a8b2d882768e (patch)
treeaf052ed484d44e6594b18f01a4edceabd99b852c /initrd/init
parent4614429f5751e14e37ceedb7130b7a829c89476a (diff)
keypad support, making stuff good
Diffstat (limited to 'initrd/init')
-rw-r--r--initrd/init15
1 files changed, 9 insertions, 6 deletions
diff --git a/initrd/init b/initrd/init
index 9f6a9cf..fcf9ec2 100644
--- a/initrd/init
+++ b/initrd/init
@@ -1,11 +1,14 @@
do
- rand 479 > x
- rand 319 > y
- rand 479 > i
- rand 319 > j
- rand 32767 > purple
+ getkey > input
+ if (input & 4)
+ rand 479 > x
+ rand 319 > y
+ rand 479 > i
+ rand 319 > j
+ rand 32767 > purple
- line x y i j purple
+ line x y i j purple
+ end
while (1)
print "done"