Hi,
I made a small game for my sister in law where she has to type the french translation of a random english word. Since she doesn’t have elixir installed on her machine, I thought I could build a release with distillery and embed erts in it.
When I type mix
from the root of the project, the game starts, shows a word and wait for an input (with IO.gets
). I can then type my translation, press Enter and receive a feedback (success/failure).
When I type iex -S mix
, the game starts, shows a word and wait for an input but anything I type doesn’t show up in my terminal. Pressing Enter doesn’t do anything either.
When I build my release and type ./rel/game/bin/game foreground
, the game starts, shows a word and wait for an input. I can type an answer and press enter, it shows up in my terminal but nothing happens after I press enter: I can keep typing.
What am I missing? how can I fix it?