diff options
| author | Rob Hoelz <rob@hoelz.ro> | 2013-02-10 19:39:15 +0100 |
|---|---|---|
| committer | Rob Hoelz <rob@hoelz.ro> | 2013-02-10 19:39:15 +0100 |
| commit | 90b99619c2eff28a62a336ab21e948100465ef81 (patch) | |
| tree | 76a915a349415ec5d1470cb0ff1302cf754d71fe | |
| parent | 68a8f1005aabc69ec5bc979fa7d7873c3c2a6a1b (diff) | |
| download | lua-term-90b99619c2eff28a62a336ab21e948100465ef81.tar.gz lua-term-90b99619c2eff28a62a336ab21e948100465ef81.tar.bz2 lua-term-90b99619c2eff28a62a336ab21e948100465ef81.zip | |
Fix example in README
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -17,9 +17,9 @@ Usage | |||
| 17 | 17 | ||
| 18 | print(term.isatty(io.stdout)) -- true if standard output goes to the terminal | 18 | print(term.isatty(io.stdout)) -- true if standard output goes to the terminal |
| 19 | 19 | ||
| 20 | print(color.red 'hello') | 20 | print(colors.red 'hello') |
| 21 | print(color.red .. 'hello' .. color.reset) | 21 | print(colors.red .. 'hello' .. colors.reset) |
| 22 | print(color.red, 'hello', color.reset) | 22 | print(colors.red, 'hello', colors.reset) |
| 23 | 23 | ||
| 24 | -- The following functions take an optional IO handle (like io.stdout); | 24 | -- The following functions take an optional IO handle (like io.stdout); |
| 25 | -- io.stdout is the default if you don't specify one | 25 | -- io.stdout is the default if you don't specify one |
