×
Menu
Index

TXINIT Subroutine

 
Usage:
TXINIT()
 
Description:
Initialize TBScript to use the various text mode subroutines. This must be called at least once before calling any of the other TX based subroutines.
 
Once this mode is enabled there are some differences that you should note:
    1 – GetStr will not output a newline after input (expect under Windows). You must manually do it;
    2 – Using a newline (^n) character for output will not include the carriage return under DOS;
    3 – Outputting a newline under Linux will clear (using current color) text to the end of the current line.
 
If these differences are problematic then you'll need to design your own GetStr type subroutine using GetKey(). You can use the TBSENV variable to determine the environment the script is running in.