Difference between revisions of "Print"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
m (Info about cecho and colorecho.)
imported>StDoodle
m
Line 32: Line 32:
 
see_also={{SeeAlso|logprint|print_html}}|
 
see_also={{SeeAlso|logprint|print_html}}|
 
cli_equiv=The CLI commands "fprint," "echo" and "fecho" have similar functionality, minus the color option. However, "cecho" (also "colorecho") does have this option for color.|
 
cli_equiv=The CLI commands "fprint," "echo" and "fecho" have similar functionality, minus the color option. However, "cecho" (also "colorecho") does have this option for color.|
special= Using an invalid color name or code can cause odd colors to be chosen.|
+
special= Using an invalid color name or code can cause odd colors to be chosen; see the [[Talk:Print|Talk Page]] for details.|
 
}}
 
}}
{{RFI|How does color selection work when the specified color name / entity is invalid?|Didn't print() used to echo on the Adventuring status line? Is the absence of such behavior intentional?}}
+
{{RFI|Didn't print() used to echo on the Adventuring status line? Is the absence of such behavior intentional?}}

Revision as of 18:10, 14 March 2010

needs(code_samples);

Function Syntax

void print(string message )

void print(string message ,string color )

  • message is the text to print
  • color is an (optional) html color name or code

Print the specified text message to the CLI. If the optional color parameter is specified and a valid html color code or entity, it will print in that color.

CLI Equivalent

The CLI commands "fprint," "echo" and "fecho" have similar functionality, minus the color option. However, "cecho" (also "colorecho") does have this option for color.

See Also

logprint() | print_html()

Special

Using an invalid color name or code can cause odd colors to be chosen; see the Talk Page for details.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • Didn't print() used to echo on the Adventuring status line? Is the absence of such behavior intentional?