def __init__(self, title='Interactive Shell', add_help=True):
self.title = title
self.style = style_from_dict({
Token.Toolbar: '#ffffff bg:#333333',
})
if add_help:
self.commands['help'] = dict(
help = 'Show this help message',
)
self.history = InMemoryHistory()
self.completer = WordCompleter(sorted(self.commands.keys()))
self.parser = self._create_parser()
self.registry = self._create_keybindings_registry()
评论列表
文章目录