Browse Source

Merge pull request #61 from MSch/elixir-iex-compatibility

Support binaries in choice so gproc:i/0 works with Elixir's IEx.
Ulf Wiger 11 years ago
parent
commit
7c82850111
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/gproc_info.erl

+ 4 - 0
src/gproc_info.erl

@@ -78,8 +78,12 @@ choice(F) ->
     case get_line('(c)ontinue (q)uit -->', "c\n") of
         "c\n" ->
             F();
+        <<"c\n">> ->
+            F();
         "q\n" ->
             quit;
+        <<"q\n">> ->
+            quit;
         _ ->
             choice(F)
     end.