     for instance {:error, :estale} if reading from an
     NFS file system.
   """
-  def getb(device // :standard_io, prompt, count // 1) do
-    Erlang.io.get_chars(device, prompt, count)
+  def getb(device // :stdio, prompt, count // 1) do
+    Erlang.io.get_chars(map_dev(device), prompt, count)
   end
 
   @doc """

  but adds a new line at the end. The argument is expected
  to be a chardata.
  """
  def puts(device // :standard_io, item) do
    Erlang.io.put_chars device, item
    Erlang.io.nl(device)
  end

  @doc """
  Inspects and writes the given argument to the device
  followed by a new line.
  """
  def inspect(device // :standard_io, item) do
    puts device, Elixir.Builtin.inspect(item)
  end


    for instance {:error, :estale} if reading from an
    NFS file system.
  """
  def readline(device // :stdio) do
    Erlang.io.get_line(map_dev(device), "")
  end

  @doc """
