From 2c4d9d10d8a804dce6d2b3489ad54e9cf469c5e7 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Thu, 21 Feb 2013 21:11:36 +0100 Subject: Add colors.default as a synonym for colors.reset --- CHANGES | 1 + README.md | 1 + term/colors.lua | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 67b3803..87e23ce 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ - Add cursor functions. - Add clear functions. - Deprecate term.isatty. Use luaposix instead. + - Add colors.default as a synonym for colors.reset. 0.01 2012-06-25 23:30:00 - Initial release. Includes colors and isatty. diff --git a/README.md b/README.md index 395b37b..cfae2e4 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ The following values are available in `term.colors`: * reset * clear (a synonym for reset) + * default (a synonym for reset) * bright * dim * underscore diff --git a/term/colors.lua b/term/colors.lua index 4ab9140..32cbb54 100644 --- a/term/colors.lua +++ b/term/colors.lua @@ -49,6 +49,7 @@ local colorvalues = { -- attributes reset = 0, clear = 0, + default = 0, bright = 1, dim = 2, underscore = 4, -- cgit v1.2.3-55-g6feb