fix esc codes in chat example