   """
 
   use GenServer.Behaviour
-
-  defrecordp :state, input: "", output: "", capture_prompt: false
 
   @doc """
   Creates an IO device.

  ## get_chars

  defp get_chars(encoding, prompt, n,
                 state(input: input, output: output, capture_prompt: capture_prompt) = s) do
    case do_get_chars(input, encoding, n) do
      {:error, _} = error ->
        {error, s}

            _ -> :unicode.characters_to_binary(input, encoding)
          end

        {result, %{s| input: input, output: output}}
    end
  end

