aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hoelz <rob@hoelz.ro>2013-02-21 21:11:36 +0100
committerRob Hoelz <rob@hoelz.ro>2013-02-21 21:11:36 +0100
commit2c4d9d10d8a804dce6d2b3489ad54e9cf469c5e7 (patch)
tree46b8ba518eba393aa716a975750004b6023ddde1
parentccc60931a2782185d4f9f268d8a5bf75a9a1a023 (diff)
downloadlua-term-2c4d9d10d8a804dce6d2b3489ad54e9cf469c5e7.tar.gz
lua-term-2c4d9d10d8a804dce6d2b3489ad54e9cf469c5e7.tar.bz2
lua-term-2c4d9d10d8a804dce6d2b3489ad54e9cf469c5e7.zip
Add colors.default as a synonym for colors.reset
-rw-r--r--CHANGES1
-rw-r--r--README.md1
-rw-r--r--term/colors.lua1
3 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 67b3803..87e23ce 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@
2 - Add cursor functions. 2 - Add cursor functions.
3 - Add clear functions. 3 - Add clear functions.
4 - Deprecate term.isatty. Use luaposix instead. 4 - Deprecate term.isatty. Use luaposix instead.
5 - Add colors.default as a synonym for colors.reset.
5 6
60.01 2012-06-25 23:30:00 70.01 2012-06-25 23:30:00
7 - Initial release. Includes colors and isatty. 8 - 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`:
65 65
66 * reset 66 * reset
67 * clear (a synonym for reset) 67 * clear (a synonym for reset)
68 * default (a synonym for reset)
68 * bright 69 * bright
69 * dim 70 * dim
70 * underscore 71 * 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 = {
49 -- attributes 49 -- attributes
50 reset = 0, 50 reset = 0,
51 clear = 0, 51 clear = 0,
52 default = 0,
52 bright = 1, 53 bright = 1,
53 dim = 2, 54 dim = 2,
54 underscore = 4, 55 underscore = 4,