Skip to content

fix EOF crash and input flow#108

Open
Souvik-Dey-2029 wants to merge 2 commits into
HunxByts:mainfrom
Souvik-Dey-2029:main
Open

fix EOF crash and input flow#108
Souvik-Dey-2029 wants to merge 2 commits into
HunxByts:mainfrom
Souvik-Dey-2029:main

Conversation

@Souvik-Dey-2029

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 19:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the CLI input loop in GhostTR.py to avoid recursive menu re-entry, add explicit EOF handling at the main prompt, and preserve the menu banner rendering. It fits the codebase as a usability/stability update for the tool’s interactive command-line flow.

Changes:

  • Replaced recursive main() re-entry with a while True loop for menu handling.
  • Removed recursive retry behavior from execute_option() after option errors/success.
  • Added EOFError handling in main() and switched the menu banner string to a raw f-string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread GhostTR.py
Comment on lines +305 to +308
except EOFError:
print(f'\n{Wh}[ {Re}! {Wh}] {Re}No input detected. Exit')
time.sleep(1)
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants