MCPcopy Create free account
hub / github.com/bpython/bpython / display_buffer_lines

Method display_buffer_lines

bpython/curtsiesfrontend/repl.py:1454–1465  ·  view source on GitHub ↗

The display lines (wrapped, colored, +prompts) of current buffer

(self)

Source from the content-addressed store, hash-verified

1452
1453 @property
1454 def display_buffer_lines(self):
1455 """The display lines (wrapped, colored, +prompts) of current buffer"""
1456 lines = []
1457 for display_line in self.display_buffer:
1458 prompt = func_for_letter(self.config.color_scheme["prompt"])
1459 more = func_for_letter(self.config.color_scheme["prompt_more"])
1460 display_line = (
1461 more(self.ps2) if lines else prompt(self.ps1)
1462 ) + display_line
1463 for line in paint.display_linize(display_line, self.width):
1464 lines.append(line)
1465 return lines
1466
1467 @property
1468 def display_line_with_prompt(self):

Callers

nothing calls this directly

Calls 2

func_for_letterFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected