edbg shell (hisotry) prompt handling.
Copyright © (C) 20224, Torbjorn Tornkvist
Authors: Torbjorn Tornkvist (kruskakli@gmail.com).
The edbg shell (hisotry) prompt handling
Since OTP-26 the Erlang shell was changed so that edbg's prompt-loop is not added to the shell history. In OTP-28 a io:setopts will be added as well but until then, the following code could be used.
See the demo module at: https://www.erlang.org/doc/apps/stdlib/io_protocol.html#input-requests
-------------------------------------------------------------------| get_line/1 | |
| until_newline/3 |
get_line(Prompt) -> any()
until_newline(ThisFar, CharList, MyStopCharacter) -> any()
Generated by EDoc