Merge pull request 'clipboard: Make the clipboard service work under the new service sys' (#4) from Amanda/OC-PsychOS2:fix-clipboard-editor-cleanup into master
Looks good.
This commit is contained in:
commit
7dda36fd1d
5
.editorconfig
Normal file
5
.editorconfig
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*.lua]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 1
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
*.cpio
|
*.cpio
|
||||||
*.af
|
*.af
|
||||||
|
apidoc.md
|
||||||
/target
|
/target
|
||||||
/doc
|
/doc
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
local lc = computer.uptime()
|
|
||||||
_G.clip = ""
|
_G.clip = ""
|
||||||
while true do
|
|
||||||
local eT = {coroutine.yield()}
|
function start()
|
||||||
if eT[1] == "clipboard" then
|
return os.spawn(function()
|
||||||
if computer.uptime() > lc + 5 then
|
local lc
|
||||||
_G.clip = ""
|
while true do
|
||||||
end
|
local eT = {coroutine.yield()}
|
||||||
_G.clip = _G.clip .. eT[3]
|
if eT[1] == "clipboard" then
|
||||||
end
|
if computer.uptime() > lc + 5 then
|
||||||
|
_G.clip = ""
|
||||||
|
end
|
||||||
|
lc = computer.uptime()
|
||||||
|
_G.clip = _G.clip .. eT[3]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user