Advertisement
lego11

Gestionale eRGB

Jul 3rd, 2019 (edited)
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.64 KB | None | 0 0
  1. -- CONFIGURAZIONE
  2. -- Lato stampante
  3. LPT = "right"
  4. -- Lato floppy
  5. fd = "left"
  6.  
  7. -- DICHIARAZIONE VARIABILI
  8. -- contatori totali
  9. consumoTotale = 0
  10. immissioneTotale = 0
  11.  
  12. cliente = nil
  13.  
  14. -- spese fisse totali
  15. speseFisseConsTotali = 0
  16. speseFisseImmTotali = 0
  17.  
  18. -- IMPLEMENTAZIONE DEL DRAWFILLEDBOX
  19. local function drawPixelInternal(xPos, yPos)
  20.     term.setCursorPos(xPos, yPos)
  21.     term.write(" ")
  22. end
  23. local tColourLookup = {}
  24. for n = 1, 16 do
  25.     tColourLookup[string.byte("0123456789abcdef", n, n)] = 2 ^ (n - 1)
  26. end
  27. function drawFilledBox(startX, startY, endX, endY, nColour)
  28.     if type(startX) ~= "number" or type(startX) ~= "number" or type(endX) ~=
  29.         "number" or type(endY) ~= "number" or
  30.         (nColour ~= nil and type(nColour) ~= "number") then
  31.         error("Expected startX, startY, endX, endY, colour", 2)
  32.     end
  33.  
  34.     startX = math.floor(startX)
  35.     startY = math.floor(startY)
  36.     endX = math.floor(endX)
  37.     endY = math.floor(endY)
  38.  
  39.     if nColour then term.setBackgroundColor(nColour) end
  40.     if startX == endX and startY == endY then
  41.         drawPixelInternal(startX, startY)
  42.         return
  43.     end
  44.  
  45.     local minX = math.min(startX, endX)
  46.     if minX == startX then
  47.         minY = startY
  48.         maxX = endX
  49.         maxY = endY
  50.     else
  51.         minY = endY
  52.         maxX = startX
  53.         maxY = startY
  54.     end
  55.  
  56.     for x = minX, maxX do for y = minY, maxY do drawPixelInternal(x, y) end end
  57. end
  58. -- Icone
  59. function disegnaAvviso()
  60.     drawFilledBox(5, 6, 13, 13, colours.yellow)
  61.     for i = 7, 12, 1 do
  62.         paintutils.drawPixel(9, i, colours.black)
  63.         paintutils.drawPixel(9, 11, colours.yellow)
  64.     end
  65. end
  66. function disegnaFloppy()
  67.     drawFilledBox(4, 5, 18, 15, colours.lime)
  68.     drawFilledBox(7, 5, 15, 8, colours.lightGrey)
  69.     drawFilledBox(13, 6, 14, 7, colours.lime)
  70.     drawFilledBox(5, 10, 17, 15, colours.white)
  71.     paintutils.drawPixel(18, 5, colours.black)
  72. end
  73. function disegnaFoglio()
  74.     drawFilledBox(4, 5, 18, 15, colours.white)
  75.     paintutils.drawPixel(6, 12, colours.lime)
  76.     paintutils.drawPixel(7, 13, colours.lime)
  77.     paintutils.drawPixel(8, 14, colours.lime)
  78.     px = 9
  79.     py = 13
  80.     for i = 1, 8, 1 do
  81.         paintutils.drawPixel(px, py, colours.lime)
  82.         px = px + 1
  83.         py = py - 1
  84.     end
  85. end
  86.  
  87. function disegnaStampante()
  88.     drawFilledBox(4, 10, 18, 15, colours.lightGrey)
  89.     drawFilledBox(6, 6, 16, 10, colours.white)
  90.     drawFilledBox(6, 14, 16, 14, colours.grey)
  91. end
  92.  
  93. -- Funzione pulisci
  94. function clear()
  95.     term.clear()
  96.     term.setCursorPos(1, 1)
  97. end
  98.  
  99. -- Funzioni colori
  100. function colore(sfumatura) term.setTextColour(sfumatura) end
  101. function fineColore() term.setTextColour(colours.white) end
  102. function sfondo(sfumaturaSfondo) term.setBackgroundColour(sfumaturaSfondo) end
  103. function fineSfondo() term.setBackgroundColour(colours.black) end
  104.  
  105. -- Disegna il Titolo
  106. function disegnaTitolo()
  107.     local tx, ty = term.getCursorPos()
  108.     term.setCursorPos(1, 1)
  109.     colore(colours.black)
  110.     sfondo(colours.yellow)
  111.     print("            Creazione Guidata Bolletta               ")
  112.     fineColore()
  113.     fineSfondo()
  114.     term.setCursorPos(tx, ty)
  115. end
  116.  
  117. -- Schermata Consumo
  118. function finestraConsumo()
  119.     -- Schermata iniziale
  120.     clear()
  121.     sfondo(colours.black)
  122.     term.clear()
  123.     disegnaTitolo()
  124.  
  125.     term.setCursorPos(1, 3)
  126.     print(
  127.         "Inserire i dati richiesti. Se il campo åA8 corretto, diventeråA0 verde. In caso contrario il computer chiederåA0 di reinserire il dato. Per annullare premere CTRL+T.")
  128.     -- Intestatario del contratto
  129.     term.setCursorPos(1, 9)
  130.     term.write("Intestatario:")
  131.     term.setCursorPos(15, 9)
  132.     fineColore()
  133.     if cliente == nil or cliente == "" then cliente = read() end
  134.     term.setCursorPos(15, 9)
  135.     colore(colours.lime)
  136.     term.write(cliente)
  137.     fineColore()
  138.  
  139.     -- Lettura contatore consumo
  140.     colore(colours.white)
  141.     term.setCursorPos(1, 11)
  142.     term.write("Consumo (Wh):")
  143.     term.setCursorPos(15, 11)
  144.     fineColore()
  145.     consumoAccettato = false
  146.     conteggioErrori = 0
  147.     while consumoAccettato == false do
  148.         consumo = read()
  149.         colore(colours.white)
  150.         term.setCursorPos(14, 11)
  151.         fineColore()
  152.         if tonumber(consumo) == "" or tonumber(consumo) == nil or
  153.             tonumber(consumo) < 0 then
  154.             term.setCursorPos(15, 11)
  155.             colore(colours.red)
  156.             term.write("Il dato immesso non corrisponde    ")
  157.             fineColore()
  158.             sleep(2)
  159.             term.setCursorPos(15, 11)
  160.             term.write("                                   ")
  161.             term.setCursorPos(15, 11)
  162.         else
  163.             term.setCursorPos(15, 11)
  164.             colore(colours.lime)
  165.             term.write(consumo .. " Wh")
  166.             consumoAccettato = true
  167.  
  168.         end
  169.     end
  170.  
  171.     -- Lettura spese fisse
  172.     colore(colours.white)
  173.     term.setCursorPos(1, 13)
  174.     term.write("Spese fisse:")
  175.     term.setCursorPos(15, 13)
  176.     fineColore()
  177.     local sfAccettate = false
  178.     conteggioErrori = 0
  179.     while sfAccettate == false do
  180.         speseFisseCons = read()
  181.         colore(colours.white)
  182.         term.setCursorPos(14, 13)
  183.         fineColore()
  184.         if tonumber(speseFisseCons) == "" or tonumber(speseFisseCons) == nil or
  185.             tonumber(speseFisseCons) < 0 then
  186.             term.setCursorPos(15, 13)
  187.             colore(colours.red)
  188.             term.write("Il dato immesso non corrisponde    ")
  189.             fineColore()
  190.             sleep(2)
  191.             term.setCursorPos(15, 13)
  192.             term.write("                                   ")
  193.             term.setCursorPos(15, 13)
  194.         else
  195.             term.setCursorPos(15, 13)
  196.             colore(colours.lime)
  197.             term.write(speseFisseCons .. " IC")
  198.             sfAccettate = true
  199.         end
  200.     end
  201.  
  202.     -- Calcolo totale contatore consumo
  203.     consumoTotale = consumoTotale + math.floor(consumo / 1000000)
  204.     speseFisseConsTotali = speseFisseConsTotali + speseFisseCons
  205. end
  206.  
  207. -- Schermata immissione
  208.  
  209. function finestraImmissione()
  210.     -- Schermata iniziale
  211.     clear()
  212.     sfondo(colours.black)
  213.     term.clear()
  214.     disegnaTitolo()
  215.  
  216.     term.setCursorPos(1, 3)
  217.     print(
  218.         "Inserire i dati richiesti. Se il campo åA8 corretto, diventeråA0 verde. In caso contrario il computer chiederåA0 di reinserire il dato. Per annullare premere CTRL+T.")
  219.     -- Intestatario del contratto
  220.     term.setCursorPos(1, 9)
  221.     term.write("Intestatario:")
  222.     fineColore()
  223.     term.setCursorPos(15, 9)
  224.     colore(colours.lime)
  225.     term.write(cliente)
  226.     fineColore()
  227.  
  228.     -- Lettura contatore immissione
  229.     colore(colours.white)
  230.     term.setCursorPos(1, 11)
  231.     term.write("Immiss. (Wh):")
  232.     term.setCursorPos(15, 11)
  233.     fineColore()
  234.     immissioneAccettata = false
  235.     conteggioErrori = 0
  236.     while immissioneAccettata == false do
  237.         immissione = read()
  238.         colore(colours.white)
  239.         term.setCursorPos(14, 11)
  240.         fineColore()
  241.         if tonumber(immissione) == "" or tonumber(immissione) == nil or
  242.             tonumber(immissione) < 0 then
  243.             term.setCursorPos(15, 11)
  244.             colore(colours.red)
  245.             term.write("Il dato immesso non corrisponde    ")
  246.             fineColore()
  247.             sleep(2)
  248.             term.setCursorPos(15, 11)
  249.             term.write("                                   ")
  250.             term.setCursorPos(15, 11)
  251.         else
  252.             term.setCursorPos(15, 11)
  253.             colore(colours.lime)
  254.             term.write(immissione .. " Wh")
  255.             immissioneAccettata = true
  256.  
  257.         end
  258.     end
  259.  
  260.     -- Lettura spese fisse
  261.     colore(colours.white)
  262.     term.setCursorPos(1, 13)
  263.     term.write("Spese fisse:")
  264.     term.setCursorPos(15, 13)
  265.     fineColore()
  266.     local sfImmAccettate = false
  267.     conteggioErrori = 0
  268.     while sfImmAccettate == false do
  269.         speseFisseImm = read()
  270.         colore(colours.white)
  271.         term.setCursorPos(14, 13)
  272.         fineColore()
  273.         if tonumber(speseFisseImm) == "" or tonumber(speseFisseImm) == nil or
  274.             tonumber(speseFisseImm) < 0 then
  275.             term.setCursorPos(15, 13)
  276.             colore(colours.red)
  277.             term.write("Il dato immesso non corrisponde    ")
  278.             fineColore()
  279.             sleep(2)
  280.             term.setCursorPos(15, 13)
  281.             term.write("                                   ")
  282.             term.setCursorPos(15, 13)
  283.         else
  284.             term.setCursorPos(15, 13)
  285.             colore(colours.lime)
  286.             term.write(speseFisseImm .. " IC")
  287.             sfImmAccettate = true
  288.         end
  289.     end
  290.  
  291.     -- Calcolo totale contatore immissione
  292.     immissioneTotale = immissioneTotale + math.floor(immissione / 1000000)
  293.     speseFisseImmTotali = speseFisseImmTotali + speseFisseImm
  294. end
  295.  
  296. -- MAIN LOOP
  297. -- DEL PROGRAMMA
  298.  
  299. -- Stampante
  300. lpt = peripheral.wrap(LPT)
  301.  
  302. sfondo(colors.black)
  303. clear()
  304.  
  305. -- Disegna la finestra per i dati del consumo
  306.  
  307. local dialogoAltroCont = false
  308. while dialogoAltroCont == false do
  309.  
  310.     finestraConsumo()
  311.  
  312.     -- Question box per un altro contatore
  313.     clear()
  314.     disegnaTitolo()
  315.     colore(colors.black)
  316.     sfondo(colors.yellow)
  317.     term.setCursorPos(14, 7)
  318.     term.write("  Consumo  ")
  319.     drawFilledBox(14, 8, 37, 14, colors.lightBlue)
  320.     term.setCursorPos(15, 9)
  321.     term.write("Inserire un altro")
  322.     term.setCursorPos(15, 10)
  323.     term.write("contatore consumo?")
  324.     colore(colors.black)
  325.     sfondo(colors.red)
  326.     term.setCursorPos(16, 13)
  327.     term.write("   No   ")
  328.     colore(colors.black)
  329.     sfondo(colors.lime)
  330.     term.setCursorPos(28, 13)
  331.     term.write("   Si   ")
  332.     fineSfondo()
  333.     fineColore()
  334.  
  335.     local scelta = false
  336.     while scelta == false do
  337.         event, key, x, y = os.pullEvent("mouse_click")
  338.         if event == "mouse_click" and x > 16 and x < 24 and y == 13 then
  339.             scelta = true
  340.             dialogoAltroCont = true
  341.         elseif event == "mouse_click" and x > 28 and x < 36 and y == 13 then
  342.             scelta = true
  343.             dialogoAltroCont = false
  344.         end
  345.     end
  346. end
  347.  
  348. clear()
  349. disegnaTitolo()
  350. sleep(0.5)
  351.  
  352. -- Question box per il Doppio Contatore
  353. colore(colors.black)
  354. sfondo(colors.yellow)
  355. term.setCursorPos(14, 7)
  356. term.write("  Immissione  ")
  357. drawFilledBox(14, 8, 37, 14, colors.lightBlue)
  358. term.setCursorPos(15, 9)
  359. term.write("Il cliente possiede")
  360. term.setCursorPos(15, 10)
  361. term.write("il Doppio Contatore?")
  362. colore(colors.black)
  363. sfondo(colors.red)
  364. term.setCursorPos(16, 13)
  365. term.write("   No   ")
  366. colore(colors.black)
  367. sfondo(colors.lime)
  368. term.setCursorPos(28, 13)
  369. term.write("   Si   ")
  370. fineColore()
  371. fineSfondo()
  372.  
  373. local dialogoDC = false
  374. while dialogoDC == false do
  375.     event, key, x, y = os.pullEvent("mouse_click")
  376.     if event == "mouse_click" and x > 16 and x < 24 and y == 13 then
  377.         utenteConDC = false
  378.         dialogoDC = true
  379.     elseif event == "mouse_click" and x > 28 and x < 36 and y == 13 then
  380.         utenteConDC = true
  381.         dialogoDC = true
  382.     end
  383. end
  384.  
  385. -- debug only
  386.  
  387. if utenteConDC == true then
  388.     print("ACC-M")
  389.     finDC = false
  390.     while finDC == false do
  391.  
  392.         finestraImmissione()
  393.  
  394.         clear()
  395.         disegnaTitolo()
  396.         sleep(0.5)
  397.  
  398.         -- Question box per il Doppio Contatore
  399.         colore(colors.black)
  400.         sfondo(colors.yellow)
  401.         term.setCursorPos(14, 7)
  402.         term.write("  Immissione  ")
  403.         drawFilledBox(14, 8, 37, 14, colors.lightBlue)
  404.         term.setCursorPos(15, 9)
  405.         term.write("Inserire un altro")
  406.         term.setCursorPos(15, 10)
  407.         term.write("contatore immissione?")
  408.         colore(colors.black)
  409.         sfondo(colors.red)
  410.         term.setCursorPos(16, 13)
  411.         term.write("   No   ")
  412.         colore(colors.black)
  413.         sfondo(colors.lime)
  414.         term.setCursorPos(28, 13)
  415.         term.write("   Si   ")
  416.         local dialogoAltroDC = false
  417.         while dialogoAltroDC == false do
  418.             event, key, x, y = os.pullEvent("mouse_click")
  419.             if event == "mouse_click" and x > 16 and x < 24 and y == 13 then
  420.                 dialogoAltroDC = true
  421.                 finDC = true
  422.             elseif event == "mouse_click" and x > 28 and x < 36 and y == 13 then
  423.                 finDC = false
  424.                 dialogoAltroDC = true
  425.             end
  426.         end
  427.     end
  428. end
  429. fineSfondo()
  430. fineColore()
  431. clear()
  432. disegnaTitolo()
  433. term.setCursorPos(1, 3)
  434.  
  435. print("Riepilogo:\n")
  436.  
  437. -- Controllo variabili
  438.  
  439. if consumoTotale == nil or consumoTotale == "" then consumoTotale = 0 end
  440.  
  441. if immissioneTotale == nil or immissioneTotale == "" then immissioneTotale = 0 end
  442.  
  443. if speseFisseConsTotali == nil or speseFisseConsTotali == "" then
  444.     speseFisseConsTotali = 0
  445. end
  446.  
  447. if speseFisseImmTotali == nil or speseFisseImmTotali == "" then
  448.     speseFisseImmTotali = 0
  449. end
  450.  
  451. colore(colors.lightGray)
  452. print("Energia")
  453. fineColore()
  454. print(" Consumo       : " .. consumoTotale .. " IC")
  455. print(" Immissione    : " .. immissioneTotale .. " IC\n")
  456.  
  457. colore(colors.lightGray)
  458. term.setCursorPos(26, 5)
  459. print("Spese Fisse")
  460. fineColore()
  461. term.setCursorPos(27, 6)
  462. print(" S.F. consumo  : " .. speseFisseConsTotali .. " IC")
  463. term.setCursorPos(27, 7)
  464. print(" S.F. immi     : " .. speseFisseImmTotali .. " IC\n")
  465.  
  466. -- Calcoli
  467. subtEnergia = consumoTotale - immissioneTotale
  468. subtSF = speseFisseConsTotali + speseFisseImmTotali
  469. granTotale = subtEnergia + subtSF
  470.  
  471. colore(colors.lightGray)
  472. print("Subtotali")
  473. fineColore()
  474. print(" Subt. energia : " .. subtEnergia .. " IC")
  475. print(" Subt. S.F.    : " .. subtSF .. " IC\n")
  476.  
  477. colore(colors.yellow)
  478. print("Gran Totale    : " .. granTotale .. " IC")
  479.  
  480. term.setCursorPos(9, 17)
  481. sfondo(colors.red)
  482. colore(colors.black)
  483. term.write("   Annulla    ")
  484. term.setCursorPos(28, 17)
  485. sfondo(colors.lime)
  486. colore(colors.black)
  487. term.write("   Conferma   ")
  488. fineColore()
  489. fineSfondo()
  490.  
  491. local scelta = false
  492. while scelta == false do
  493.     event, key, x, y = os.pullEvent("mouse_click")
  494.     if event == "mouse_click" and x > 9 and x < 23 and y == 17 then
  495.         scelta = true
  496.         continua = false
  497.     elseif event == "mouse_click" and x > 28 and x < 42 and y == 17 then
  498.         scelta = true
  499.         continua = true
  500.     end
  501. end
  502.  
  503. clear()
  504. if continua == true then
  505.     -- Recupera data
  506.     local phpdate = http.get("http://172.16.20.220/data.php?q=ergb")
  507.     local date = phpdate.readAll()
  508.     phpdate.close()
  509.  
  510.     -- Stampa
  511.     stampantePronta = false
  512.     while stampantePronta == false do
  513.         if lpt.getPaperLevel() == 0 then
  514.             clear()
  515.             disegnaTitolo()
  516.             disegnaAvviso()
  517.             fineColore()
  518.             fineSfondo()
  519.             term.setCursorPos(22, 9)
  520.             term.write("Inserire")
  521.             term.setCursorPos(22, 10)
  522.             term.write("carta")
  523.             term.setCursorPos(22, 11)
  524.             term.write("nella stampante")
  525.             term.setCursorPos(22, 13)
  526.             sfondo(colors.lime)
  527.             term.write("   OK   ")
  528.             fineSfondo()
  529.             attesa = false
  530.             while attesa == false do
  531.                 event, key, x, y = os.pullEvent("mouse_click")
  532.                 if event == "mouse_click" and x > 22 and x < 31 and y == 13 then
  533.                     attesa = true
  534.                 end
  535.             end
  536.  
  537.         elseif lpt.getInkLevel() == 0 then
  538.             clear()
  539.             disegnaTitolo()
  540.             disegnaAvviso()
  541.             fineColore()
  542.             fineSfondo()
  543.             term.setCursorPos(22, 9)
  544.             term.write("Inserire")
  545.             term.setCursorPos(22, 10)
  546.             term.write("inchiostro")
  547.             term.setCursorPos(22, 11)
  548.             term.write("nella stampante")
  549.             term.setCursorPos(22, 13)
  550.             sfondo(colors.lime)
  551.             term.write("   OK   ")
  552.             fineSfondo()
  553.             attesa = false
  554.             while attesa == false do
  555.                 event, key, x, y = os.pullEvent("mouse_click")
  556.                 if event == "mouse_click" and x > 22 and x < 31 and y == 13 then
  557.                     attesa = true
  558.                 end
  559.             end
  560.  
  561.         else
  562.             stampantePronta = true
  563.         end
  564.     end
  565.  
  566.     clear()
  567.     disegnaTitolo()
  568.     disegnaStampante()
  569.     fineColore()
  570.     fineSfondo()
  571.     term.setCursorPos(22, 9)
  572.     term.write("Stampa")
  573.     term.setCursorPos(22, 10)
  574.     term.write("bolletta")
  575.     term.setCursorPos(22, 11)
  576.     term.write("in corso")
  577.     term.setCursorPos(22, 13)
  578.     lpt.newPage()
  579.     lpt.setPageTitle("Bolletta eRGB - "..cliente)
  580.     lpt.write("¥BB Bolletta eRGB")
  581.     lpt.setCursorPos(1,3)
  582.     lpt.write("Cliente:")
  583.     lpt.setCursorPos(10,3)
  584.     lpt.write(cliente)
  585.     lpt.setCursorPos(1,4)
  586.     lpt.write("Data:")
  587.     lpt.setCursorPos(10,4)
  588.     lpt.write(date)
  589.     lpt.setCursorPos(1,6)
  590.     lpt.write("¥BB Letture")
  591.     lpt.setCursorPos(1,8)
  592.     lpt.write("Consumo:")
  593.     lpt.setCursorPos(10,8)
  594.     lpt.write(consumoTotale.." IC")
  595.     lpt.setCursorPos(1,9)
  596.     lpt.write("Immiss.:")
  597.     lpt.setCursorPos(10,9)
  598.     lpt.write(immissioneTotale.." IC")
  599.     lpt.setCursorPos(1,11)
  600.     lpt.write("¥BB Spese fisse")
  601.     lpt.setCursorPos(1,13)
  602.     lpt.write("Consumo:")
  603.     lpt.setCursorPos(10,13)
  604.     lpt.write(speseFisseConsTotali.." IC")
  605.     lpt.setCursorPos(1,14)
  606.     lpt.write("Immiss.:")
  607.     lpt.setCursorPos(10,14)
  608.     lpt.write(speseFisseConsTotali.." IC")
  609.     lpt.setCursorPos(1,16)
  610.     lpt.write("¥BB Totale")
  611.     lpt.setCursorPos(1,18)
  612.     lpt.write(granTotale.." IC")
  613.     lpt.setCursorPos(1,20)
  614.     lpt.write("Grazie per aver scelto")
  615.     lpt.setCursorPos(1,21)
  616.     lpt.write("eRGB")
  617.     lpt.endPage()
  618.     sleep(2)
  619.  
  620.     -- tabella disco
  621.     be = {}
  622.     be.UICnumber = cliente
  623.     be.date = date
  624.     be.totale = granTotale
  625.     bedisco = textutils.serialize(be)
  626.  
  627.     -- Messaggio inserire il disco
  628.     clear()
  629.     if disk.isPresent(fd) == false then
  630.         disegnaTitolo()
  631.         disegnaFloppy()
  632.         fineColore()
  633.         fineSfondo()
  634.         term.setCursorPos(22, 9)
  635.         term.write("Inserire il")
  636.         term.setCursorPos(22, 10)
  637.         term.write("Disco Bolletta Elettronica")
  638.         term.setCursorPos(22, 11)
  639.         term.write("nel lettore floppy")
  640.         event, latoFloppy = os.pullEvent("disk")
  641.     end
  642.     disk.setLabel(fd, "DBE - "..cliente)
  643.     local handle = assert(fs.open("disk/be", "w"), "TOC ERROR")
  644.     handle.write(bedisco)
  645.     handle.close()
  646.     clear()
  647.     disk.eject(fd)
  648.     disegnaFoglio()
  649.     fineColore()
  650.     fineSfondo()
  651.     term.setCursorPos(22, 9)
  652.     term.write("Completato!")
  653.     term.setCursorPos(22, 10)
  654.     term.write("Ritirare la bolletta")
  655.     term.setCursorPos(22, 11)
  656.     term.write("e il disco floppy.")
  657.     sleep(2)
  658.     clear()
  659. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement