summaryrefslogtreecommitdiff
path: root/README.md
blob: 9b67a96a5c431788a416819a934821ce7a2a6e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Overview
--------

lua-term is a Lua module for manipulating a terminal.

Installation
------------

lua-term is available on Luarocks.

Usage
-----

```lua
    local term   = require 'term'
    local colors = term.colors -- or require 'term.colors'

    print(term.isatty(io.stdout)) -- true if standard output goes to the terminal

    print(color.red 'hello')
    print(color.red .. 'hello' .. color.reset)
    print(color.red, 'hello', color.reset)
```