'Select current line (without selecting console prompt)'

def _select_input(self):

    (line, index) = self.get_position('eof')
    if (self.current_prompt_pos is None):
        (pline, pindex) = (line, index)
    else:
        (pline, pindex) = self.current_prompt_pos
    self.setSelection(pline, pindex, line, index)
