We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b20084 commit dce3a3aCopy full SHA for dce3a3a
lib/iex/lib/iex/cli.ex
@@ -53,13 +53,18 @@ defmodule IEx.CLI do
53
if tty_works? do
54
:user_drv.start([:"tty_sl -c -e", tty_args])
55
else
56
- :user.start
+ :application.set_env(:stdlib, :shell_prompt_func,
57
+ {__MODULE__, :prompt})
58
+ :user.start()
59
unless match? {:win32, _}, :os.type do
60
IO.puts "Warning: could not run smart terminal, falling back to dumb one"
61
end
62
local_start()
63
64
65
+ def prompt(_n) do
66
+ []
67
+ end
68
69
# Check if tty works. If it does not, we fall back to the
70
# simple/dumb terminal. This is starting the linked in
0 commit comments