Skip to content

Commit

Permalink
Merge pull request #99 from felipealfonsog/development
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
felipealfonsog authored Oct 27, 2023
2 parents aa0303c + 09abfa0 commit b89a3d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/termpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b89a3d4

Please sign in to comment.