Replace interpret_esc_xterm with interpret_osc.

This fixes a bug where title changes are not recognized, e.g.:

 printf '\033];title\007'

The missing parameter (before the semicolon) should be interpreted as 0.
Call fflush after printing title