'Last modified:
'2011.07.04 02:50 KS
include once "ConsoleC.inc"
sys i
string s$
new ConsoleC c "Window Console Title: TestConsoleC.o2bas"
c.SetColor FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY
s$ = c.GetTitle() crlf$
c.Print s$ crlf$ crlf$
c.SetColor FOREGROUND_RED or FOREGROUND_BLUE or FOREGROUND_INTENSITY
s$ = c.Input "Enter data: "
c.SetColor DEFAULT_COLOR
c.Print crlf$ "Data entered: " s$ crlf$ crlf$
c.SetColor F_DARK_GREEN : c.Print "DARK_GREEN" crlf$
c.SetColor F_GREEN : c.Print "GREEN" crlf$
c.SetColor F_DARK_BLUE : c.Print "DARK_BLUE" crlf$
c.SetColor F_BLUE : c.Print "BLUE" crlf$
c.SetColor F_DARK_RED : c.Print "DARK_RED" crlf$
c.SetColor F_RED : c.Print "RED" crlf$
c.SetColor F_DARK_YELLOW : c.Print "DARK_YELLOW" crlf$
c.SetColor F_YELLOW : c.Print "YELLOW" crlf$
c.SetColor F_DARK_PURPLE : c.Print "DARK_PURPLE" crlf$
c.SetColor F_PURPLE : c.Print "PURPLE" crlf$
c.SetColor F_DARK_CYAN : c.Print "DARK_CYAN" crlf$
c.SetColor F_CYAN : c.Print "CYAN" crlf$
c.SetColor F_DARK_GREY : c.Print "DARK_GREY" crlf$
c.SetColor F_GREY : c.Print "GREY" crlf$
c.SetColor F_WHITE : c.Print "WHITE" crlf$
c.SetCPos 20, 30
'only B_DARK_GREEN will print at the cursor position
c.SetColor B_DARK_GREEN : c.Print "DARK_GREEN " crlf$
c.SetColor B_GREEN : c.Print "GREEN " crlf$
c.SetColor B_DARK_BLUE : c.Print "DARK_BLUE " crlf$
c.SetColor B_BLUE : c.Print "BLUE " crlf$
c.SetColor B_DARK_RED : c.Print "DARK_RED " crlf$
c.SetColor B_RED : c.Print "RED " crlf$
c.SetColor B_DARK_YELLOW : c.Print "DARK_YELLOW" crlf$
c.SetColor B_YELLOW : c.Print "YELLOW " crlf$
c.SetColor B_DARK_PURPLE : c.Print "DARK_PURPLE" crlf$
c.SetColor B_PURPLE : c.Print "PURPLE " crlf$
c.SetColor B_DARK_CYAN : c.Print "DARK_CYAN " crlf$
c.SetColor B_CYAN : c.Print "CYAN " crlf$
c.SetColor B_DARK_GREY : c.Print "DARK_GREY " crlf$
c.SetColor B_GREY : c.Print "GREY " crlf$
c.SetColor B_WHITE : c.Print "WHITE " crlf$
c.SetColor DEFAULT_COLOR
c.Print crlf$ crlf$ crlf$
c.Print "Press a key to exit." crlf$
c.GetKey
del c