MCPcopy Create free account
hub / github.com/ipython/ipython / rewrite_prompt_tokens

Method rewrite_prompt_tokens

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

Source from the content-addressed store, hash-verified

45 ]
46
47 def rewrite_prompt_tokens(self):
48 width = self._width()
49 return [
50 (Token.Prompt, ('-' * (width - 2)) + '> '),
51 ]
52
53 def out_prompt_tokens(self):
54 return [

Callers 1

auto_rewrite_inputMethod · 0.45

Calls 1

_widthMethod · 0.95

Tested by

no test coverage detected