NET:InnerSpaceAPI.InnerSpace.Echo
From Lavish Software Wiki
Contents |
[edit]
Overview
Echoes text to an Inner Space console
[edit]
Reference Library
[edit]
Fully Qualified Name
- InnerSpaceAPI.InnerSpace.Echo
- InnerSpaceAPI namespace
- InnerSpace class
- Echo function
- InnerSpace class
[edit]
Declaration
static public void Echo([In] string Output);
[edit]
Parameters
- [In] string Output
- The text to output to the console. This is very similar to System.Console.WriteLine.
[edit]
Color Codes
Color codes are allowed in console output. Color codes begin with \a (ASCII value 10, or 0xa in hex), followed by a letter indicating the color. Placing a - before the letter indicates a dark version of that color.
- y - yellow (-y for dark)
- o - orange (-o for dark)
- g - green (-g for dark)
- u - blue (-u for dark)
- r - red (-r for dark)
- t - teal (-t for dark)
- b - black (clear)
- m - magenta (-m for dark)
- p - purple (-p for dark)
- w - white (-w for dark)
- x - previous color
- Color Code Examples
InnerSpace.Echo("\arRed \aoOrange \ayYellow \agGreen \auBlue \apPurple \a-wGrey");
[edit]
Return Value
None
[edit]
Examples
[edit]
C#
using InnerSpaceAPI;
namespace HelloWorld
{
public class HelloWorld
{
public static void Main()
{
InnerSpace.Echo("Hello World!"); // Equivalent to System.Console.WriteLine
}
}
}
[edit]
C++
using namespace InnerSpaceAPI;
int main(int argc, char *argv[])
{
// called when the assembly is loaded
InnerSpace::Echo(L"Hello World");
return 0;
}
[edit]
Visual Basic
Imports InnerSpaceAPI
Namespace HelloWorld
Public Class HelloWorld
Public Shared Sub Main()
InnerSpace.Echo("Hello World!")
End Sub
End Class
End Namespace
[edit]
