Advertisement
jille_Jr

CC: motley - Message

Dec 10th, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. -- message2.lua
  2.  
  3. --(( Load APIs ))--
  4.  
  5. os.loadAPI('unicode')
  6. os.loadAPI('form')
  7.  
  8. --(( SETTINGS ))--
  9.  
  10. local coloring = {
  11.     text = {fg=colors.black,bg=colors.white},
  12.     -- Line number tab
  13.     ln = {fg=colors.lightGray,bg=colors.gray},
  14.     -- highlighted line
  15.     highlight = {fg=colors.black,bg=colors.lightGray},
  16.     -- Placeholder text
  17.     placeholder = {fg=colors.gray,bg=colors.white},
  18.     -- buttons
  19.     button = {fg=colors.blue,bg=colors.lightBlue},
  20. }
  21.  
  22. --(( VARIABLES ))--
  23.  
  24. -- main loop statement
  25. local running = true
  26.  
  27. -- screen size
  28. local screen_w,screen_h = term.getSize()
  29.  
  30. -- form
  31. local f = form.Form()
  32.  
  33. --(( FUNCTIONS ))--
  34.  
  35. local function main()
  36.     f:add(form.Element, 2,2, 15,3))
  37.     f:draw()
  38. end
  39.  
  40. --(( ERROR HANDLEING ))--
  41.  
  42. --(( MAIN PROGRAM ))--
  43.  
  44. main()
  45.  
  46. --(( EOF ))--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement