Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
felipealfonsog committed Oct 27, 2023
1 parent 2d6d446 commit 9702bf6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/termpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,15 @@ 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.")
print("Search completed. Press 'q' to exit, 'Enter' to continue searching, or any other key to go back to the previous page.")

while True:
response = input()
if response.lower() == 'q':
return
response = input()
if response.lower() == 'q':
return
elif response == '':
continue
else:
print("Invalid choice. Going back to the previous page.")

except Exception as e:
print(f"Error: {e}")
Expand All @@ -120,7 +123,6 @@ def display_pdf(pdf_filename):




def main():
print("\n"
"▀▀█▀▀ █▀▀ █▀▀█ █▀▄▀█ ▒█▀▀█ ▒█▀▀▄ ▒█▀▀▀   ▒█░░▒█ ░▀░ █▀▀ █░░░█ █▀▀ █▀▀█\n"
Expand Down

0 comments on commit 9702bf6

Please sign in to comment.