use new style [[...]] test. check for display before loading xresources