I think using colours in this way is fine (even useful). But I don't approve of making the delay constant. One of the things which annoys me about almost all password prompts nowadays is that you have to spuriously wait for a second (or several) after your first or second failed attempt.
Ian. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

