Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- message2.lua
- --(( Load APIs ))--
- os.loadAPI('unicode')
- os.loadAPI('form')
- --(( SETTINGS ))--
- local coloring = {
- text = {fg=colors.black,bg=colors.white},
- -- Line number tab
- ln = {fg=colors.lightGray,bg=colors.gray},
- -- highlighted line
- highlight = {fg=colors.black,bg=colors.lightGray},
- -- Placeholder text
- placeholder = {fg=colors.gray,bg=colors.white},
- -- buttons
- button = {fg=colors.blue,bg=colors.lightBlue},
- }
- --(( VARIABLES ))--
- -- main loop statement
- local running = true
- -- screen size
- local screen_w,screen_h = term.getSize()
- -- form
- local f = form.Form()
- --(( FUNCTIONS ))--
- local function main()
- f:add(form.Element, 2,2, 15,3))
- f:draw()
- end
- --(( ERROR HANDLEING ))--
- --(( MAIN PROGRAM ))--
- main()
- --(( EOF ))--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement