Print()

Syntax

Print(Text$)
Description
Displays the specified string in the console. The length of the string should not be over 250 characters, otherwise the string will be truncated (have the end cut off). To change the current cursor position the command ConsoleLocate() should be used. To change the appearance of the string when it is printed, the command ConsoleColor() should be used.

The cursor will be moved to the next character after the end of the string that is printed. If you print over the right edge of the console the text will wrap around to the left edge on the next line down. If you print off the bottom of the console window, the console window will scroll its contents up.

Parameters:
Text$ - The string which is to be displayed in the console.


Return value:
This command does not return a value.


Example:
If OpenConsole()
    Print("This is quite a long string.")
    Print("You see how this one joins onto the end of the previous one?")
    Print("That is because the cursor moves to the end of the string and not onto a new line.")
    Print("Hopefully the text will also have been wrapped by now.")

    PrintN("Press return to exit")
    Input()
    CloseConsole()
EndIf
End

Supported OS

Windows, Linux, MacOS X

<- OpenConsole() - Console Index - PrintN() ->