phase out peripheral.lookup

This commit is contained in:
kepler155c@gmail.com
2019-03-08 16:25:56 -05:00
parent 89f95ca45b
commit a9d03b06e9
11 changed files with 69 additions and 237 deletions

View File

@@ -1,5 +1,3 @@
_G.requireInjector(_ENV)
local Util = require('util')
local kernel = _G.kernel
@@ -21,10 +19,12 @@ keyboard.addHotkey('control-backspace', function()
local tab = kernel.find(uid)
if not tab.isOverview then
multishell.terminate(uid)
tab = Util.shallowCopy(tab)
tab.isDead = false
tab.focused = true
multishell.openTab(tab)
multishell.openTab({
path = tab.path,
env = tab.env,
args = tab.args,
focused = true,
})
end
end)