ui.inc: added ui_read_macro as a minimalist read