1234567891011121314151617181920212223 |
- package main
- import (
- "fmt"
- "red-green/door"
- )
- func main() {
- fmt.Println("Starting testdoor.go")
- d := door.Door{}
- d.Init()
- reset := door.Reset
- bold := door.Color(1, 37, 40)
- bolder := door.ColorText("BLI BOLD YEL ON BLUE")
- d.Write("Welcome to " + bolder + "door32.sys" + reset + "\n\r...\n\r")
- key := d.Getch()
- message := fmt.Sprintf("Key %s%d / %x%s\n\r", bold, key, key, reset)
- d.Write(message)
- d.Write("Returning you to the BBS...\n\r")
- d.SleepKey(3)
- fmt.Println("Ending testdoor.go")
- }
|