Skip to content

Commit d53cd79

Browse files
committed
Use bold and italic in shell banner
1 parent dae34aa commit d53cd79

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

trepan/processor/command/python.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,16 @@ def run(self, args):
9494
pass
9595
pass
9696

97-
banner_tmpl = """trepan3k python shell%s
98-
Use dbgr(*string*) to issue debugger command: *string*"""
97+
banner_tmpl = """\033[1mIPython trepan3k shell%s\033[0m
98+
99+
Use dbgr(\x1b[3mstring\x1b[0m) to issue non-continuing debugger command.
100+
"""
99101

100102
debug = len(args) > 1 and args[1] == "-d"
101103
if debug:
102-
banner_tmpl += "\nVariable 'debugger' contains a trepan" "debugger object."
104+
banner_tmpl += (
105+
"\nVariable \x1b[3mdebugger\x1b[0m) contains a trepan debugger object."
106+
)
103107
pass
104108

105109
my_locals = {}

0 commit comments

Comments
 (0)