Selaa lähdekoodia

added a clipboard daemon, changed default services

pull/1/head
XeonSquared 4 vuotta sitten
vanhempi
commit
2c9bb81fe9
2 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. +1
    -0
      default-init.txt
  2. +11
    -0
      service/clipboard.lua

+ 1
- 0
default-init.txt Näytä tiedosto

@@ -1,2 +1,3 @@
minitel.lua
tape-iofs.lua
fsmanager.service

+ 11
- 0
service/clipboard.lua Näytä tiedosto

@@ -0,0 +1,11 @@
local lc = computer.uptime()
_G.clip = ""
while true do
local eT = {coroutine.yield()}
if eT[1] == "clipboard" then
if computer.uptime() > lc + 5 then
_G.clip = ""
end
_G.clip = _G.clip .. eT[3]
end
end

Loading…
Peruuta
Tallenna