From e685cd5624a2ba9aaa84441e317be88496974db8 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 30 Oct 2023 20:41:09 -0500 Subject: [PATCH] Fix iex prompt in recent erlang versions --- modules/home-manager/iex.nix | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/modules/home-manager/iex.nix b/modules/home-manager/iex.nix index 9ff036d..c1abb33 100644 --- a/modules/home-manager/iex.nix +++ b/modules/home-manager/iex.nix @@ -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() - ) + ) ''; }; }