From 09abfa0ec964059c2b9e030a047a44dff093bb78 Mon Sep 17 00:00:00 2001 From: Felipe Date: Fri, 27 Oct 2023 19:34:27 -0300 Subject: [PATCH] Updates --- src/termpdf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/termpdf.py b/src/termpdf.py index 35de700..5e67424 100755 --- a/src/termpdf.py +++ b/src/termpdf.py @@ -105,11 +105,11 @@ def display_pdf(pdf_filename): if not found: print(f"No matches found for '{keyword}'.") else: + print("Search completed. Press 'q' to exit or any other key to continue searching.") + while True: - response = input("Press Enter to continue searching or press Esc to exit search: ") - if response.lower() == '': - break - elif response.lower() == 'esc': + response = input() + if response.lower() == 'q': return except Exception as e: