emulation: Fix \e[d and \e[`