Add premake.info message function.
This commit is contained in:
parent
6907f6785c
commit
0936e3a25b
@ -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 = {}
|
||||
|
Reference in New Issue
Block a user