STDLIB(Application)
π NAME π
Okay so the name is STDLIB Application, and the manual page is STDLIB(Application) β brought to you by Ericsson AB. That's the header tea, bestie. π
π DESCRIPTION π
πΈ Description πΈ
The STDLIB application is mandatory in the sense that the minimal system based on Erlang/OTP consists of Kernel and STDLIB. The STDLIB application contains no services. Not a single one β it's giving backstage crew energy, and honestly we respect it. π
No services here, bestie. Zero. None. Periodt. β¨
β¨ Configuration β¨
The following configuration parameters are defined for the STDLIB application. For more information about configuration parameters, see the app(4) module in Kernel. π«Ά
shell_esc = icl | abortβ can be used to change the behavior of the Erlang shell when^Gis pressed (Ctrl+G, iykyk). πrestricted_shell = module()β can be used to run the Erlang shell in restricted mode. πshell_catch_exception = boolean()β can be used to set the exception handling of the evaluator process of the Erlang shell. π«§shell_docs_columns = pos_integer()β configures how wide the documentation should be rendered in the shell. See alsoshell_docs:config/0. πshell_expand_location = above | belowβ sets where the tab expansion text should appear in the shell. The default isbelow. This will open a pager below the cursor that is scrollable one line at a time with Up/Down arrow keys or 5 lines at a time with PgUp/PgDn. π¦shell_history_length = integer() >= 0β can be used to determine how many commands are saved by the Erlang shell. Seeedlinfor more. π§Ύshell_keymap = #{}β can be used to override the default keymap configuration for the shell. β¨οΈformat_shell_func = {Mod, Func} | string() | defaultβ can be used to set the formatting of the Erlang shell output. This has an effect on commands that have been submitted and how it is saved in history or if the formatting hotkey is pressed while editing an expression (Alt+Fby default). You can specify aMod:Func/1that expects the whole expression as a string and returns a formatted expression as a string. Seeshell:format_shell_func/1for how to set it from inside the shell.
If instead a string is provided, it will be used as a shell command. Your command must include ${file} somewhere in the string, for the shell to know where the file goes in the command. Example vibes:
-stdlib format_shell_func "\"emacs -batch \${file} -l ~/erlang-format/emacs-format-file -f emacs-format-function\""
-stdlib format_shell_func "{shell, erl_pp_format_func}"
shell_prompt_func = {Mod, Func} | defaultβ can be used to set a customized Erlang shell prompt function, where:Mod = atom()Func = atom()
shell_multiline_prompt = {Mod, Func} | string() | defaultβ can be used to set a customized multiline shell prompt function, where:Mod = atom()Func = atom()
The multiline prompt function takes the main prompt as its only parameter. π
shell_saved_results = integer() >= 0β can be used to determine how many results are saved by the Erlang shell. πΎshell_session_slogan = string() | fun() -> string())β the slogan printed when starting an Erlang shell. Example:
$ erl -stdlib shell_session_slogan '"Test slogan"'
Erlang/OTP 26 [DEVELOPMENT] [erts-13.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
Test slogan
1>
shell_slogan = string() | fun(() -> string())β the slogan printed when starting the Erlang shell subsystem. Example:
$ erl -stdlib shell_slogan '"Test slogan"'
Test slogan
Eshell V13.0.2 (abort with ^G)
1>
The default is the return value of erlang:system_info(system_version). β
shell_strings = boolean()β can be used to determine how the Erlang shell outputs lists of integers. π’shell_hints = boolean()β can be used to enable/disable printing of helpful hints in the shell. π‘
π¦ See Also π¦
app(4), application, shell β go read those too, bestie. π«Ά
π Cute little sign-off: this page is from stdlib 8.1, with the footer's 6 date/page marker, and it's STDLIB(Application). Periodt. π
π¦ where this page comes from
- arch rolling: erlang-core 29.1.1-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms