View difference between Paste ID: PL5A5hft and tYNRVG4T
SHOW: | | - or go back to the newest paste.
1
todo1 = " "
2
todo2 = " "
3
todo3 = " "
4
todo4 = " "
5
todo5 = " "
6
todo6 = " "
7
todo7 = " "
8
todo8 = " "
9
todo9 = " "
10
while true do
11
    local sEvent, param = os.pullEvent("key")
12
    if sEvent == "key" then
13
      if param == 2 then
14
        sleep(0.000001)
15
        todo1 = read()
16
      end
17
      if param == 3 then
18
        sleep(0.000001)
19
        todo2 = read()
20
      end
21
      if param == 4 then
22
        sleep(0.000001)
23
        todo3 = read()
24
      end
25
      if param == 5 then
26
        sleep(0.000001)
27
        todo4 = read()
28
      end
29
      if param == 6 then
30
      sleep(0.000001)
31
        todo5 = read()
32
      end
33
      if param == 7 then
34
        sleep(0.000001)
35
        todo6 = read()
36
      end
37
      if param == 8 then
38
        sleep(0.000001)
39
        todo7 = read()
40
      end
41
      if param == 9 then
42
        sleep(0.000001)
43
        todo8 = read()
44
      end
45
      if param == 10 then
46
        sleep(0.000001)
47
        todo9 = read()
48
      end
49
      if param == 208 then
50
          todo9 = todo8
51
          todo8 = todo7
52
          todo7 = todo6
53
          todo6 = todo5
54
          todo5 = todo4
55
          todo4 = todo3
56
          todo3 = todo2
57
          todo2 = todo1
58
          todo1 = " "
59
      end
60
      if param == 200 then
61
        todo1 = todo2
62
        todo2 = todo3
63
        todo3 = todo4
64
        todo4 = todo5
65
        todo5 = todo6
66
        todo6 = todo7
67
        todo7 = todo8
68
        todo8 = todo9
69
        todo9 = " "
70
      end
71
    term.clear()
72
    term.setCursorPos(1,1)
73-
    print("Ezra")
73+
    print("MyName")
74
    print(" ")
75
    print(" ")
76
    print("1. ".. todo1)
77
    print(" ")
78
    print("2. ".. todo2)
79
    print(" ")
80
    print("3. ".. todo3)
81
    print(" ")
82
    print("4. ".. todo4)
83
    print(" ")
84
    print("5. ".. todo5)
85
    print(" ")
86
    print("6. ".. todo6)
87
    print(" ")
88
    print("7. ".. todo7)
89
    print(" ")
90
    print("8. ".. todo8)
91
    print(" ")
92
    print("9. ".. todo9)
93
  end
94
end