the handwriting (or writing) is on the wall
there are clear signs that something unpleasant or unwelcome is going to happen
the handwriting was on the wall for the old system
Origin:
with biblical allusion to Dan. 5:5, 25 - 8
Useful english dictionary. 2012.