[contents]
Contents
Syntax
The syntax for console.unlock calls is:
Description
The console.unlock function is for reallowing other threads from outputting to the console when it is currently locked, it takes zero parameters.
Note: An error will be thrown if you call console.unlock when the console is not already locked.
Note: Nift will skip to the first non-whitespace (ie. to the first character that is not a space, tab or newline) after a console.unlock call and inject it to the output file where the call started. If you want to prevent Nift from doing this put a '!' after the call, eg.:
f++ example
Example of console.unlock being used with f++:
console.lock
console("hello, world!")
console.unlock
n++ example
Example of console.unlock being used with n++:
@console.lock
@console("hello, world!")
@console.unlock