Compare commits
No commits in common. "7dda36fd1dbc108f5e0e080d200b2034ee2662a8" and "124b39c96de13b1f8b0caa801c3d657660eaa0ca" have entirely different histories.
7dda36fd1d
...
124b39c96d
@ -1,5 +0,0 @@
|
|||||||
root = true
|
|
||||||
|
|
||||||
[*.lua]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 1
|
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
*.cpio
|
*.cpio
|
||||||
*.af
|
*.af
|
||||||
apidoc.md
|
|
||||||
/target
|
/target
|
||||||
/doc
|
/doc
|
||||||
|
@ -1,17 +1,11 @@
|
|||||||
|
local lc = computer.uptime()
|
||||||
_G.clip = ""
|
_G.clip = ""
|
||||||
|
|
||||||
function start()
|
|
||||||
return os.spawn(function()
|
|
||||||
local lc
|
|
||||||
while true do
|
while true do
|
||||||
local eT = {coroutine.yield()}
|
local eT = {coroutine.yield()}
|
||||||
if eT[1] == "clipboard" then
|
if eT[1] == "clipboard" then
|
||||||
if computer.uptime() > lc + 5 then
|
if computer.uptime() > lc + 5 then
|
||||||
_G.clip = ""
|
_G.clip = ""
|
||||||
end
|
end
|
||||||
lc = computer.uptime()
|
|
||||||
_G.clip = _G.clip .. eT[3]
|
_G.clip = _G.clip .. eT[3]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user