+static FIELD *boot_editor_setup_button(unsigned int y, unsigned int x,
+ char *str)
+{
+ FIELD *f;
+
+ f = new_field(1, strlen(str), y, x, 0, 0);
+ field_opts_off(f, O_EDIT);
+ set_field_buffer(f, 0, str);
+ set_field_back(f, A_NORMAL);
+ set_field_fore(f, A_NORMAL);
+ return f;
+}
+
+struct boot_editor *boot_editor_init(struct pmenu *menu,