emulation: Make {insert,delete}-lines move the cursor to first column
emulation: Fix absolute cursor movement with origin mode
emulation: Fix \e[d and \e[`
emulation: Fix cursor reporting with origin mode