Use Terminal to Launch the Executable
Instead of using open, you can directly invoke the executable file within the app bundle: bash
/Applications/MyApp.app/Contents/MacOS/MyApp
This ensures the application attaches to the terminal and can read user input. i hope*