fn: lolcat.off
[contents]

Contents

Nift console screenshot

Syntax

The syntax for lolcat.off calls is:

f++:  
lolcat.off

n++:  
@lolcat.off

Description

The lolcat.off function is for turning off outputting text to the console with rainbow colours, it takes zero parameters.

Note: There is a modified version of my lolcat-cc in-built in to Nift which has a taste of what other platforms can do for Windows, however you can use lolcat.off with quite a few different lolcat implementations installed on your machine. It is available for:

Note: Nift will skip to the first non-whitespace (ie. to the first character that is not a space, tab or newline) after a lolcat.off 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.:

@lolcat.off()!

f++ example

Example of lolcat.off being used with f++:

  1. :=(int, i=12)
  2. :=(string, str="hello")
  3. lolcat.on
  4. console.lock
  5. console("i: ", i)
  6. console(str, ", world!")
  7. console("first line", endl, "second line")
  8. console{block}
  9. {
  10. first line
  11. second line
  12. third line
  13. }
  14. console.unlock
  15. lolcat.off

n++ example

Example of lolcat.off being used with n++:

  1. @:=(int, i=12)
  2. @:=(string, str="hello")
  3. @lolcat.on
  4. @console.lock
  5. @console("i: ", i)
  6. @console(str, ", world!")
  7. @console("first line", endl, "second line")
  8. @console{block}
  9. {
  10. first line
  11. second line
  12. third line
  13. }
  14. @console.unlock
  15. @lolcat.off

lolcat-cc mascot