Merge pull request #814 from Blizzard/premake-info
Add premake.info message function.
This commit is contained in:
commit
8e083bba09
@ -361,6 +361,23 @@
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- Display information in the term.infoColor color.
|
||||
--
|
||||
-- @param message
|
||||
-- The info message, which may contain string formatting tokens.
|
||||
-- @param ...
|
||||
-- Values to fill in the string formatting tokens.
|
||||
--
|
||||
|
||||
function premake.info(message, ...)
|
||||
message = string.format(message, ...)
|
||||
term.pushColor(term.infoColor)
|
||||
io.stdout:write(string.format("** Info: " .. message .. "\n", ...))
|
||||
term.popColor();
|
||||
end
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- A shortcut for printing formatted output.
|
||||
|
@ -25,6 +25,7 @@ term.white = 15
|
||||
-- colors for specific purpose.
|
||||
term.warningColor = term.magenta
|
||||
term.errorColor = term.lightRed
|
||||
term.infoColor = term.lightCyan
|
||||
|
||||
-- color stack implementation.
|
||||
term._colorStack = {}
|
||||
|
Loading…
Reference in New Issue
Block a user