Skip to content

Commit c0b9664

Browse files
sam-f0sam-f0
andcommitted
Fix bug where prompt-toolkit inputhook was not correctly set in newer versions of prompt-toolkit (#20)
Update pinned version Co-authored-by: sam-f0 <[email protected]>
1 parent 0553f52 commit c0b9664

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

binder_trace/binder_trace/tui/interface.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def assign_frequency_filters(self):
102102
def get_recording(self):
103103
return self.recording
104104

105-
def run(self):
105+
def run(self, inputhook):
106106
self.focusable = [
107107
self.transaction_table,
108108
self.hexdump_pane,
@@ -312,7 +312,7 @@ def _(event):
312312
)
313313
app.before_render += self.check_resize
314314

315-
app.run()
315+
app.run(inputhook=inputhook)
316316

317317
def reload_frequency_pane(self):
318318
self.frequency_counter.svl.clear()
@@ -426,6 +426,4 @@ def inputhook(inputhook_context: InputHookContext):
426426
else:
427427
time.sleep(0.1)
428428

429-
set_eventloop_with_inputhook(inputhook=inputhook)
430-
431-
ui.run()
429+
ui.run(inputhook)

binder_trace/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ frida-tools
44
jsonpickle~=2.2.0
55
python-pcapng~=2.1.0
66
pycolors~=0.1.2
7-
prompt_toolkit~=3.0.33
7+
prompt_toolkit==3.0.41
88
python-ranges
99
pyperclip

0 commit comments

Comments
 (0)