Allow changing of cursor shape with escape codes