Skip to content

Commit

Permalink
md:basic now gives the simplest markdown for limited terminals (like …
Browse files Browse the repository at this point in the history
…Mac terminals).
  • Loading branch information
stephenfreund committed Apr 8, 2024
1 parent 96a7289 commit 58cc588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chatdbg/chatdbg_lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def __lldb_init_module(debugger: lldb.SBDebugger, internal_dict: dict) -> None:
debugger.HandleCommand(f"settings set prompt '{PROMPT}'")
chatdbg_config.format = "md:llvm"
chatdbg_config.format = "md"



Expand Down
6 changes: 3 additions & 3 deletions src/chatdbg/util/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"warning": "bright_white on green",
"error": "bright_white on red"
}),
"llvm" : Theme(
"basic" : Theme(
{
"markdown.block": "bright_blue on bright_white",
"markdown.paragraph": "bright_blue on bright_white",
Expand Down Expand Up @@ -113,7 +113,7 @@ def __init__(

self._console = self._make_console(out)

if theme == 'llvm':
if theme == 'basic':
Markdown.elements["list_item_open"] = MyListItem
self._code_theme = "monokai"

Expand Down Expand Up @@ -181,7 +181,7 @@ def on_function_call(self, call, result):
line = fill_to_width(f"\n{prefix}{self._debugger_prompt}{call}", self._width)
entry = f"[command]{escape(line)}[/]\n"

entry += self._wrap_and_fill_and_indent(result+"\n", prefix, "result")
entry += self._wrap_and_fill_and_indent(result.rstrip()+"\n", prefix, "result")
m = self._wrap_in_panel(entry)
self._print(m, end='')

Expand Down

0 comments on commit 58cc588

Please sign in to comment.