Fix iex prompt in recent erlang versions
This commit is contained in:
parent
5b73c62d2d
commit
e685cd5624
1 changed files with 13 additions and 14 deletions
|
@ -14,23 +14,22 @@
|
||||||
limit: :infinity,
|
limit: :infinity,
|
||||||
charlists: :as_lists
|
charlists: :as_lists
|
||||||
],
|
],
|
||||||
default_prompt:
|
default_prompt: [
|
||||||
[
|
# ANSI CHA, move cursor to column 1
|
||||||
# ANSI CHA, move cursor to column 1
|
# "\e[G",
|
||||||
"\e[G",
|
:magenta,
|
||||||
:magenta,
|
# IEx prompt variable
|
||||||
# IEx prompt variable
|
"%prefix",
|
||||||
"%prefix",
|
"#",
|
||||||
"#",
|
# IEx prompt variable
|
||||||
# IEx prompt variable
|
"%counter",
|
||||||
"%counter",
|
# plain string
|
||||||
# plain string
|
">",
|
||||||
">",
|
:reset
|
||||||
:reset
|
|
||||||
]
|
]
|
||||||
|> IO.ANSI.format()
|
|> IO.ANSI.format()
|
||||||
|> IO.chardata_to_string()
|
|> IO.chardata_to_string()
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue