ui_write
&& 0 == UI_method_set_writer(ui_method, ui_write)
|| UI_method_set_writer(ui_method, ui_write) < 0