Daniel_Kerman

LokiOS

Dec 13th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. -- LOKI OS LOS --
  2.  
  3. os.loadAPI("lokiOS/files/os/apis/lapi")
  4.  
  5. lapi.clean()
  6.  
  7. lapi.drawRectangle(lapi.getCenter("x",20),lapi.getCenter("y",6),41,12,lapi.clc(colors.red),"fill");
  8.  
  9. term.setCursorPos(lapi.getCenter("x",8),lapi.getCenter("y")); lapi.color(lapi.clc(colors.red),colors.white); write("- L o k i  O S -");
  10.  
  11. sleep(2);
  12.  
  13. lapi.clean();
  14.  
  15. while true do
  16.  
  17.     lapi.clean();
  18.     lapi.drawRectangle(3,3,8,3,lapi.clc(colors.red),"fill");
  19.     term.setCursorPos(3,3);lapi.color(lapi.clc(colors.red),colors.white);write("Programs");
  20.  
  21.     while true do
  22.         local event, key = os.pullEvent( "key" );
  23.         if key == keys.t or key == keys.leftCtrl then
  24.             os.reboot();
  25.         elseif key == keys.q then
  26.             break;
  27.         end
  28.     end
  29.    
  30. end
Advertisement
Add Comment
Please, Sign In to add comment