implement osc escape codes. untested.