Writing (Handwriting) on the Wall

What does the idiom “Writing (Handwriting) on the Wall” mean?

Definition:

Hints of coming disaster

For example:

“The chairman tried to pretend that the company is prospering, but I can see the handwriting on the wall.”

Notes:

This is of biblical origin.