Terminal related - IUrixl/Kova GitHub Wiki
Print content on screen.
print "<content>"
Argument | Definition |
---|---|
Content | Content to print, variables can be used with %variablename% or %escEM%variablename%escEm% |
define main -> {
print "Hello world"
}
Direct transpilation of echo.
println
define main -> {
print "Hello world"
println
print "Spaced"
}
Clears the screen buffer, direct transpilation of cls.
clear
define main -> {
print "This wont be seen"
clear
print "This will be seen"
}
Retreives user input.
input <variable> -> <display>
Argument | Definition |
---|---|
Variable | Variable where the obtained input will be stored |
Display | Text that will be displayed while asking the user for its input |
define main -> {
input Age -> "Whats your age"
}
Halts, direct transpilation of exit.
halt <mode> <params>
Argument | Definition |
---|---|
Mode | Mode for the halt command |
Params | Only needed during the "thread" mode |
define main -> {
// halt whole process
halt all
// halt current process
halt running
// halt specific thread with its errorlevel
halt thread errorlevelhere
}
Changes the window's title.
title <display>
Argument | Definition |
---|---|
Display | Text that will be displayed on the title's bar of the window. |
define main -> {
title "My cool app"
}