if not term.isColor() then
  print("Advanced computer required")
  error()
end

local sides = peripheral.getNames()
local cloakingCore
for _, side in pairs(sides) do
  if peripheral.getType(side) == "warpdriveCloakingCore" then
    print("Wrapping " .. side)
    cloakingCore = peripheral.wrap(side)
    break
  end
end


if cloakingCore == nil or cloakingCore.interfaced() == nil then
  term.setBackgroundColor(colors.red)
  term.setTextColor(colors.white)
  term.write("No cloaking core detected")
else
  cloakingCore.enable(false)
  term.setBackgroundColor(colors.lightGray)
  term.setTextColor(colors.black)
  term.write("Cloaking is disabled")
end

term.setBackgroundColor(colors.black)
term.setTextColor(colors.white)

print()
print()
-- print("Program closed")
