Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: elixir-lang/elixir
base: 6d62e473aa
...
head fork: elixir-lang/elixir
compare: 8d2feae582
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 10 additions and 5 deletions.
  1. +10 −5 lib/elixir/lib/iex/unicode_io.ex
View
15 lib/elixir/lib/iex/unicode_io.ex
@@ -11,11 +11,16 @@ defmodule IEx.UnicodeIO do
return a list with the new characters inserted.
"""
def get(config) do
- prompt = case config.cache do
- [] -> "iex(#{config.counter})> "
- _ -> "...(#{config.counter})> "
+ prefix = case config.cache do
+ [] -> "iex"
+ _ -> "..."
+ end
+ prompt = case node do
+ :nonode@nohost ->
+ "#{prefix}(#{config.counter})> "
+ n ->
+ "#{prefix}(#{n})#{config.counter}> "
end
-
case IO.gets(prompt) do
{ :error, _ } -> ''
data -> :unicode.characters_to_list(data)
@@ -37,4 +42,4 @@ defmodule IEx.UnicodeIO do
def error(result) do
IO.puts :standard_error, result
end
-end
+end

No commit comments for this range

Something went wrong with that request. Please try again.