     raise ArgumentError, "invalid ANSI sequence specification: #{other}"
   end
 
+  defp format_sequence(other) do
+    raise ArgumentError, "invalid ANSI sequence specification: #{other}"
+  end
+
   @doc ~S"""
   Formats a chardata-like argument by converting named ANSI sequences into actual
   ANSI codes.

  end

  defp do_format(term, rem, acc, true, append_reset) when is_atom(term) do
    try do
      do_format([], rem, [acc | [apply(IO.ANSI, term, [])]], true, !!append_reset)
    rescue
      _ in UndefinedFunctionError ->
        raise ArgumentError, message: "invalid ANSI sequence specification: #{term}"
    end
  end

  defp do_format(term, rem, acc, false, append_reset) when is_atom(term) do

      end

      defp escape_sequence(unquote(Atom.to_char_list(name))) do
        unquote(name)()
      end

      defp format_sequence(unquote(name)) do
        unquote(name)()
      end
    end
