-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readline bindings only on mac and windows. fixes simonw/llm#516 simonw/llm#582 #560
base: main
Are you sure you want to change the base?
Conversation
@simonw I modified the PR to import readline and bind only on Darwin, this fixes the following 4 open issues: #516 #582 #585 #495 As commented elsewhere, digging through the history it seems like readline is used to fix this issue #376 which is the proper fix for #355 (so basically, the standard terminal on osx). It's a simple PR, can you please give it a look? |
I just hit this issue with readline on Windows 10. Claude Sonnet suggested this patch to use the codes readline recognizes for Windows. It works.
|
Based on the analysis above, the two bindings were introduced to address an issue on macOS (darwin), specifically with the default iTerm app. Considering the existing issues, I believe it’s fair to say that on Linux and Windows, these bindings have caused more problems than they've solved. So I stand by my original PR which removes the import and bindings on those platforms. In fact, I don't think hardcoding these bindings is a good approach even on darwin. It wouldn’t surprise me if similar issues arose on macOS with other terminal emulators. @simonw I'm asking you once again if can you please have a look at this simple PR of mine |
@simonw just FYI, I rebased and rewritten the PR to perform readline bindings only on darwin and windows, as per the new code by @sukhbinder in #646. |
fixes #516