CC-Tweaked/src/main/resources/data/computercraft/lua/rom/programs/advanced/fg.lua

18 lines
338 B
Lua

if not shell.openTab then
printError("Requires multishell")
return
end
local tArgs = { ... }
if #tArgs > 0 then
local nTask = shell.openTab(table.unpack(tArgs))
if nTask then
shell.switchTab(nTask)
end
else
local nTask = shell.openTab("shell")
if nTask then
shell.switchTab(nTask)
end
end