aandrew-me / tgpt

AI Chatbots in terminal without needing API keys
GNU General Public License v3.0
2.04k stars 171 forks source link

Allow exiting interactive mode with Ctrl+D #299

Open arrowd opened 1 month ago

arrowd commented 1 month ago

I got used to pressing Ctrl+D in shells (as well as patch, python, etc.) so I always stumble upon this when working in tgpt -i. Can you please make it exit the interactive session on ^D just like it does for ^C?

aandrew-me commented 1 month ago

The library which is currently being used doesn't support using Ctrl + D for that :(