Lua 5.1 compatible escape codes.

This commit is contained in:
slembcke 2015-03-22 17:52:03 -05:00
parent 3d84ce6c85
commit 649f7c3733
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@
-- Use ANSI color codes in the prompt by default.
-- You can disable it by making the strings empty.
local COLOR_RED = "\x1b[31m"
local COLOR_BLUE = "\x1b[34m"
local COLOR_RESET = "\x1b[0m"
local COLOR_RED = "\27[31m"
local COLOR_BLUE = "\27[34m"
local COLOR_RESET = "\27[0m"
local function pretty(obj, non_recursive)
if type(obj) == "string" then