diff options
author | Rob Hoelz <rob@hoelz.ro> | 2013-02-21 21:11:36 +0100 |
---|---|---|
committer | Rob Hoelz <rob@hoelz.ro> | 2013-02-21 21:11:36 +0100 |
commit | 2c4d9d10d8a804dce6d2b3489ad54e9cf469c5e7 (patch) | |
tree | 46b8ba518eba393aa716a975750004b6023ddde1 | |
parent | ccc60931a2782185d4f9f268d8a5bf75a9a1a023 (diff) | |
download | lua-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-- | CHANGES | 1 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | term/colors.lua | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -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 | ||
6 | 0.01 2012-06-25 23:30:00 | 7 | 0.01 2012-06-25 23:30:00 |
7 | - Initial release. Includes colors and isatty. | 8 | - Initial release. Includes colors and isatty. |
@@ -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, |