-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
CLI wonky with readline fix #420
base: master
Are you sure you want to change the base?
Conversation
Hi @KenP97 , thanks so much for the PR! I'm busy with work this week, but I hope to review and test it in more depth soon. Another quick comment: let's not include build files (e.g. |
I'll make sure to remember this.
|
I had a few minutes to test this branch tonight, and it looks like it's working overall, but I did observe a couple of issues: 1. Logging doesn't play nice with REPL promptAs I suspected, not having that
vs. the current release of Alda:
2. History not working as expectedIt seems like the history file is being read correctly, but it isn't writing to the file. When I start the REPL, I can use the up/down arrows to go up through the history of lines that I've entered in the release Alda REPL. But when I enter new lines, they aren't included in the history file, nor are they in the history as I use the up/down arrows. |
Another potential issue: I see that you are using the Gookit color library directly in various files instead of using If Gookit already handles the same things correctly, then it's fine to use Gookit directly, but otherwise, we should continue to use EDIT: If I'm understanding this correctly, Gookit may actually make it so that we don't need to worry about whether the environment supports terminal colors, because Gookit works in a variety of environments, including Windows CMD. So we might be able to remove the EDIT 2: Whoa! I just tried It looks like we do still need |
I think so ... they did something
|
That's just an example of how we can disable color based on NO_COLOR, and we are currently doing that in color.go. It would be better if Zerolog did that check for us, but if they still don't, we can keep doing what we're doing in color.go. |
Reference Issues/PRs
Addresses #405
What does this implement/fix? Explain your changes.
TODO: