Skip to content

Commit 6dcb9fb

Browse files
committed
Tweak disassembly listing...
more needs to be done
1 parent 9962c30 commit 6dcb9fb

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

trepan/lib/default.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
width = computed_displaywidth()
2828
is_dark_bg = is_dark_background()
29+
default_style = "zenburn" if is_dark_bg else "tango"
2930

3031
# Below are the default debugger settings. The debugger object version
3132
# of this may change. A setting is something a user may want to
@@ -137,7 +138,7 @@
137138

138139
# Pygments style. Style is ignored if "highlight" setting
139140
# is "plain"
140-
"style": "zenburn" if is_dark_bg else "tango",
141+
"style": default_style,
141142

142143
# Location to put temporary decompiled python files.
143144
# If value is None, use Python's defaults

trepan/lib/disassemble.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ def dis(
159159
return disassemble(
160160
msg,
161161
msg_nocr,
162-
section,
163162
x,
164163
lasti=lasti,
165164
start_line=start_line,
@@ -184,7 +183,6 @@ def dis(
184183
def disassemble(
185184
msg: Callable,
186185
msg_nocr: Callable,
187-
section,
188186
co,
189187
lasti: int = -1,
190188
start_line: int = -1,
@@ -398,9 +396,7 @@ def null_print(x):
398396
pass
399397
else:
400398
# Column: Opcode argument details
401-
msg_nocr(format_token(Symbol, "(", highlight=highlight))
402-
msg_nocr(format_token(Details, argrepr, highlight=highlight))
403-
msg(format_token(Symbol, ")", highlight=highlight))
399+
msg(format_token(Details, argrepr, highlight=highlight))
404400
pass
405401

406402
return code, offset

trepan/processor/command/quit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2013, 2015, 2020 Rocky Bernstein
2+
# Copyright (C) 2013, 2015, 2020, 2024 Rocky Bernstein
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)