code: def _get_input_buffer(self):
          
          input_buffer = ''
          if self.current_prompt_pos is not None:
              input_buffer = self.get_text(self.current_prompt_pos, 'eol')
              input_buffer = input_buffer.replace(os.linesep, '\n')
          return input_buffer
docs: Return input buffer