Console libary

Console.Clear

Console.GetLine

Console.SetBackColor

Console.SetDefaultColors

Console.SetForeColor


Console.Clear


Useage: Console.Clear()
Returns: Null
Description: Clears the console
Code example: Console.Clear()
Return value: Null

Console.GetLine


Useage: Console.GetLine()
Returns: String
Description: Reads console std-in until it encounters an \n.
Code example: Console.GetLine()
Return value: "Something entered in console"

Console.SetBackColor


Useage: Console.SetBackColor(Number colorid)
Returns: Null
Description: Sets the background color of the console text.
Code example: Console.SetBackColor(Console.Colors.Blue)
Return value: Null
Notes: The colors are:
Console.Colors.Black = 0
Console.Colors.DarkGreen = 2
Console.Colors.DarkCyan = 3
Console.Colors.DarkRed = 4
Console.Colors.DarkMagenta = 5
Console.Colors.DarkYellow = 6
Console.Colors.DarkWhite = 7
Console.Colors.Gray = 8
Console.Colors.Blue = 9
Console.Colors.Green = 10
Console.Colors.Cyan = 11
Console.Colors.Red = 12
Console.Colors.Magenta = 13
Console.Colors.Yellow = 14
Console.Colors.White = 15

Console.SetDefaultColors


Useage: Console.SetDefaultColors()
Returns: Null
Description: Reverts the console colors to the default ones.
Code example: Console.SetDefaultColors()
Return value: Null

Console.SetForeColor


Useage: Console.SetForeColor(Number colorid)
Returns: Null
Description: Sets the color of the console font.
Code example: Console.SetForeColor(Console.Color.Blue)
Return value: Null
Notes: The colors are:
Console.Colors.Black = 0
Console.Colors.DarkGreen = 2
Console.Colors.DarkCyan = 3
Console.Colors.DarkRed = 4
Console.Colors.DarkMagenta = 5
Console.Colors.DarkYellow = 6
Console.Colors.DarkWhite = 7
Console.Colors.Gray = 8
Console.Colors.Blue = 9
Console.Colors.Green = 10
Console.Colors.Cyan = 11
Console.Colors.Red = 12
Console.Colors.Magenta = 13
Console.Colors.Yellow = 14
Console.Colors.White = 15