Fix iex prompt in recent erlang versions

This commit is contained in:
Daniel Flanagan 2023-10-30 20:41:09 -05:00
parent 5b73c62d2d
commit e685cd5624
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -14,23 +14,22 @@
limit: :infinity,
charlists: :as_lists
],
default_prompt:
[
# ANSI CHA, move cursor to column 1
"\e[G",
:magenta,
# IEx prompt variable
"%prefix",
"#",
# IEx prompt variable
"%counter",
# plain string
">",
:reset
default_prompt: [
# ANSI CHA, move cursor to column 1
# "\e[G",
:magenta,
# IEx prompt variable
"%prefix",
"#",
# IEx prompt variable
"%counter",
# plain string
">",
:reset
]
|> IO.ANSI.format()
|> IO.chardata_to_string()
)
)
'';
};
}