Fix colour clearing debug trap for Darwin