From 6aca3e34ce7bf8701f9c2e5775edf10f3162822c Mon Sep 17 00:00:00 2001 From: Clemens Lang Date: Tue, 6 Feb 2024 20:54:03 +0100 Subject: [PATCH] Recognize \r as enter This seems to break on both Fedora 39 and MacPorts with Python 3.12. See: https://trac.macports.org/ticket/69284 Closes: #410 --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index eff3704..83dbec2 100755 --- a/bpytop.py +++ b/bpytop.py @@ -840,7 +840,7 @@ class Key: mouse: Dict[str, List[List[int]]] = {} mouse_pos: Tuple[int, int] = (0, 0) escape: Dict[Union[str, Tuple[str, str]], str] = { - "\n" : "enter", + ("\n", "\r") : "enter", ("\x7f", "\x08") : "backspace", ("[A", "OA") : "up", ("[B", "OB") : "down",