- Install using
wget https://raw.githubusercontent.com/Loewe111/cctinker/master/cctinker.lua
- Import using
local cctinker = require("cctinker")
- Create a screen object using
local screen = cctinker:new(term)
- At the end of your program, call
screen:loop()
to start the event loop
Example:
local cctinker = require("cctinker")
local screen = cctinker:new(term)
screen:text({x=1, y=1, text="Hello, world!", color=colors.white, background=colors.black})
screen:loop()
- The event loop is blocking, so it will not return until the program is closed
- The cctinker API is object-oriented, meaning you need to call functions with a colon, not a dot (
screen:loop()
instead ofscreen.loop
)
Documentation is available at the wiki
This project is licensed under the MIT License - see the LICENSE file for details