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

Side = { "bottom", "top", "back", "left", "right" }
for i = 1,5 do
  if peripheral.getType(Side[i]) == "warpdriveCloakingCore" then
    warp = peripheral.wrap(Side[i])
    break
  else
    warp = nil
  end
end

if warp == nil then
  term.setBackgroundColor(colors.red)
  term.setTextColor(colors.white)
  term.write("No cloaking core detected")
else
  warp.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()