setprinthandler()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in FrameXML/RestrictedInfrastructure.lua.

Sets a new print() output handler function.

setprinthandler(func)

Arguments

func
Function - The function that will be called with all of print(...)'s arguments when print(...) is called. This function is responsible for converting the values into a form it can present to the user.

Details

  • The default print handler, provided by blizzard, converts all arguments to strings, concatenates them separated by a single space character, and prints the resulting string to the default chat frame.

See also