GoCode Console and Colours - Owen2k6/GoOS GitHub Wiki

Console I/O & Colours

Printing

print="literal" + var + "more"

Writes text without a trailing newline.

println="literal" + var + "more"

Writes text and adds a newline.

Concatenation uses the exact token + (space-plus-space). Each segment can be a quoted literal, a string variable, or an integer variable.

Examples:

string name = Owen
int year = 2025
print="Hello, " + name
println=" — Year " + year

Reading

input=

Prompts using existing output and reads a line into the variable named input.

input=Prompt text

Writes the prompt, then reads a line to input.

Colours

frontcolor=<name>

backcolor=<name>

Accepted names: white, blue, green, yellow, black, cyan, gray, magenta, red, darkblue, darkcyan, darkgray, darkgreen, darkmageneta, darkred, darkyellow

Example:

frontcolor=yellow
backcolor=darkblue
println="Themed line"
⚠️ **GitHub.com Fallback** ⚠️