def auto_indent_hook(self): """Hook called by readline between printing the prompt and starting to read input. """ readline.insert_text(self._indent) readline.redisplay()