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


  def init({string, options}) do
    capture_prompt = options[:capture_prompt] || false
    {:ok, state(input: string, capture_prompt: capture_prompt)}
  end

  def handle_info({:io_request, from, reply_as, req}, s) do

  ## get_until

  defp get_until(encoding, prompt, mod, fun, args,
                 %{input: input, output: output, capture_prompt: capture_prompt} = s) do
    case :unicode.characters_to_list(input, encoding) do
      {:error, _, _} ->
        {:error, s}
