Module edbg_shell_history

The edbg shell (hisotry) prompt handling.

Copyright © (C) 20224, Torbjorn Tornkvist

Authors: Torbjorn Tornkvist (kruskakli@gmail.com).

Description

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

-------------------------------------------------------------------

Function Index

get_line/1
until_newline/3

Function Details

get_line/1

get_line(Prompt) -> any()

until_newline/3

until_newline(ThisFar, CharList, MyStopCharacter) -> any()


Generated by EDoc