MCPcopy Index your code
hub / github.com/ipython/ipython / rewrite_prompt_tokens

Method rewrite_prompt_tokens

IPython/terminal/prompts.py:85–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 ]
84
85 def rewrite_prompt_tokens(self):
86 width = self._width()
87 return [
88 (Token.Prompt, ('-' * (width - 2)) + '> '),
89 ]
90
91 def out_prompt_tokens(self) -> List[Tuple[_TokenType, str]]:
92 return [

Callers 1

auto_rewrite_inputMethod · 0.45

Calls 1

_widthMethod · 0.95

Tested by

no test coverage detected