Skip to content

Commit

Permalink
Merge pull request #101 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 aa879f2 + 9702bf6 commit 4edff28
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 4edff28

Please sign in to comment.