Advertisement
Vilsol

sAPI Example File

Sep 20th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. os.loadAPI("sAPI")
  2.  
  3. monitors = {{"25", "19"}, {"18", "24"}}
  4. sAPI.setMonitors(monitors)
  5. w, h = sAPI.getSize()
  6.  
  7. sAPI.setBackgroundColor(colors.black)
  8. sAPI.clear()
  9. sAPI.setCursorPos(1, 1)
  10.  
  11. text = ""
  12.  
  13. for f = 1, 10 do
  14.     text = (text .. "1234567890abcdefghijklmnopqrstuvwxyz ")
  15. end
  16.  
  17. sAPI.setTextColor(colors.red)
  18. sAPI.setBackgroundColor(colors.blue)
  19.  
  20. sAPI.printText(text)
  21.  
  22. sAPI.fillBox(75, 35, 20, 15, " ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement