Fix cursor positioning in vty.
Accept <C-m> as <CR> in vim ex mode even with pango frontend.
Fix window switching in vty.