Add ability to toggle off welcome message#514
Open
jg791 wants to merge 4 commits intoocaml-community:masterfrom
Open
Add ability to toggle off welcome message#514jg791 wants to merge 4 commits intoocaml-community:masterfrom
jg791 wants to merge 4 commits intoocaml-community:masterfrom
Conversation
Author
jg791
commented
May 2, 2026
| (* Common initialization. *) | ||
| common_init ~initial_env; | ||
| (* Display a welcome message, if enabled. *) | ||
| if UTop.get_show_welcome () then Lwt_main.run (welcome term); |
Author
There was a problem hiding this comment.
Moved so that the initialization is loaded before showing the welcome. Otherwise, the instructions in init.ml are ignored when deciding if we show the welcome message.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I prefer running
utopas a stripped down interpreter in the shell, which is mostly achievable with the existing configuration options. However, the welcome message tends to take up space and "break" if you resize a terminal window. This PR adds a handy config option,UTop.set_show_welcometo disable it (similar toUTop.set_show_box), while still defaulting to an "enabled" setting to preserve backwards compatibility.The README and man pages are updated accordingly.