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

Function add_border

bpython/curtsiesfrontend/replpainter.py:225–230  ·  view source on GitHub ↗

Add colored borders left and right to a line.

(line)

Source from the content-addressed store, hash-verified

223 lines = from_argspec + from_matches + from_doc
224
225 def add_border(line):
226 """Add colored borders left and right to a line."""
227 new_line = border_color(config.left_border + " ")
228 new_line += line.ljust(width)[:width]
229 new_line += border_color(" " + config.right_border)
230 return new_line
231
232 border_color = func_for_letter(config.color_scheme["main"])
233

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected