-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Export multiline prompt functions #7675
Conversation
CT Test Results 3 files 145 suites 1h 37m 59s ⏱️ Results for commit 8fc5c40. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
On a second though, it may be better to expose the underlying |
You can set the prompt with the documented: |
I agree, the prim_tty:npwcwidthstring/1 will need to be made available through some public module I suggest shell. |
I will send a PR this week with most of these changes. :) |
I have rebased and moved the multiline prompt functions to I have decided to rename |
Thanks @josevalim, I think it looks good, just the failing testcase that needs fixing. |
Both shell:default_multiline_prompt/1 and shell:inverted_space_prompt/1 have been exported. shell:prompt_width/1 is now also available as a helper function for custom prompt implementations.
I changed the test but I realized now that |
Still experimental so. And it makes more sense to me to have it in shell |
Both shell:default_multiline_prompt/1 and
shell:inverted_space_prompt/1 have been exported.
shell:prompt_width/1 is now also available as a
helper function for custom prompt implementations.