Move deleteLinesFromCursor to ANSIAction.