|
@@ -21,7 +21,7 @@ func main() {
|
|
bold := door.Color(1, 37, 40)
|
|
bold := door.Color(1, 37, 40)
|
|
bolder := door.ColorText("BLI BOLD YEL ON BLUE")
|
|
bolder := door.ColorText("BLI BOLD YEL ON BLUE")
|
|
d.Write("Welcome to " + bolder + "door32.sys" + reset + door.CRNL + "..." + door.CRNL)
|
|
d.Write("Welcome to " + bolder + "door32.sys" + reset + door.CRNL + "..." + door.CRNL)
|
|
- key := d.WaitKey(door.Inactivity, 0)
|
|
|
|
|
|
+ key := d.Key()
|
|
message := fmt.Sprintf("Key %s%d / %x%s"+door.CRNL, bold, key, key, reset)
|
|
message := fmt.Sprintf("Key %s%d / %x%s"+door.CRNL, bold, key, key, reset)
|
|
d.Write(message)
|
|
d.Write(message)
|
|
b := door.Box{20, 1}
|
|
b := door.Box{20, 1}
|
|
@@ -92,7 +92,7 @@ func main() {
|
|
}
|
|
}
|
|
|
|
|
|
d.Write(door.Reset + door.CRNL + "Press a key to continue...")
|
|
d.Write(door.Reset + door.CRNL + "Press a key to continue...")
|
|
- d.WaitKey(120, 0)
|
|
|
|
|
|
+ d.Key()
|
|
d.Write(door.CRNL)
|
|
d.Write(door.CRNL)
|
|
|
|
|
|
m := door.Menu{Panel: door.Panel{Width: 25,
|
|
m := door.Menu{Panel: door.Panel{Width: 25,
|
|
@@ -123,17 +123,12 @@ func main() {
|
|
test.RenderF = m.UnselectedR
|
|
test.RenderF = m.UnselectedR
|
|
d.Write(test.Output() + door.Reset + door.CRNL)
|
|
d.Write(test.Output() + door.Reset + door.CRNL)
|
|
d.Write(door.Reset + door.CRNL + "Press a key to continue...")
|
|
d.Write(door.Reset + door.CRNL + "Press a key to continue...")
|
|
- d.WaitKey(120, 0)
|
|
|
|
|
|
+ d.Key()
|
|
*/
|
|
*/
|
|
|
|
|
|
d.Write(door.Clrscr)
|
|
d.Write(door.Clrscr)
|
|
|
|
|
|
- _ = m.Choose(&d)
|
|
|
|
-
|
|
|
|
- // d.Write(m.Output())
|
|
|
|
- // d.WaitKey(120, 0)
|
|
|
|
-
|
|
|
|
- d.Write(door.Reset + door.CRNL + door.CRNL)
|
|
|
|
|
|
+ item := m.Choose(&d)
|
|
|
|
|
|
SPACE := [...]string{
|
|
SPACE := [...]string{
|
|
"\x1b[?7h\x1b[255D\x1b[0;1;32m\xdc\x1b[42m\xb2\xb2\xb2\xb2\xdb\x1b[40m\xdc \x1b[42m\xb1\xb1\xb2\xb2\xdb\xdb\x1b[4C\xb1\xb2\xb2\xdb\x1b[4C\xb1\xb2\xb2\xdb\xdb\x1b[3C\xb1\xb2\xb2\xdb\xdb\x1b[11C\xb1\xb2\xb2\xdb\x1b[4C\xb1\xb2\xb2\xdb\xdb\x1b[3C\xb1\xb2\xb2\xdb\xdb\x1b[40m",
|
|
"\x1b[?7h\x1b[255D\x1b[0;1;32m\xdc\x1b[42m\xb2\xb2\xb2\xb2\xdb\x1b[40m\xdc \x1b[42m\xb1\xb1\xb2\xb2\xdb\xdb\x1b[4C\xb1\xb2\xb2\xdb\x1b[4C\xb1\xb2\xb2\xdb\xdb\x1b[3C\xb1\xb2\xb2\xdb\xdb\x1b[11C\xb1\xb2\xb2\xdb\x1b[4C\xb1\xb2\xb2\xdb\xdb\x1b[3C\xb1\xb2\xb2\xdb\xdb\x1b[40m",
|
|
@@ -157,8 +152,11 @@ func main() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ d.Write(door.Reset + door.CRNL + door.CRNL)
|
|
|
|
+ d.Write(fmt.Sprintf("You chose %d from the menu."+door.CRNL, item))
|
|
|
|
+
|
|
d.Write(door.Reset + door.CRNL + "Press a key to continue...")
|
|
d.Write(door.Reset + door.CRNL + "Press a key to continue...")
|
|
- d.WaitKey(120, 0)
|
|
|
|
|
|
+ d.Key()
|
|
|
|
|
|
message = fmt.Sprintf("Returning %s to the BBS..."+door.CRNL, name)
|
|
message = fmt.Sprintf("Returning %s to the BBS..."+door.CRNL, name)
|
|
d.Write(message)
|
|
d.Write(message)
|