-
Notifications
You must be signed in to change notification settings - Fork 0
First Steps
Loewe_111 edited this page Nov 14, 2023
·
2 revisions
to install the API, run the following command:
wget https://raw.githubusercontent.com/Loewe111/cctinker/master/cctinker.lua
you need to have HTTP enabled on your computer.
to import the API, run the following command:
local cctinker = require("cctinker")
ccTinker is object-oriented, meaning you need to call functions with a colon, not a dot (screen:loop()
instead of screen.loop()
).
to create a screen object, run the following command:
local screen = cctinker:new(term)
you can use any terminal object, like the term itself, a monitor or a window.
to start the event loop, run the following command:
screen:loop()
this function is blocking, so it will not return until the program is closed, or the exit function is called.
cctinker is licensed under the MIT LICENSE | © 2023 Loewe_111