/** * Hack -- save a screen dump to a file */ void do_cmd_save_screen(void) { char ch; ch = get_char("Dump as (T)ext, (H)TML, or (F)orum text? ", "thf", 3, ' '); switch (ch) { case 't': do_cmd_save_screen_text(); break; case 'h': do_cmd_save_screen_html(0); break; case 'f': do_cmd_save_screen_html(1); break; } }
/** * Hack -- save a screen dump to a file */ void do_cmd_save_screen(void) { ui_event ke; msg("Dump type [(t)ext; (h)tml; (f)orum embedded html]:"); button_add("f", 'f'); button_add("h", 'h'); button_add("t", 't'); ke = inkey_ex(); switch(ke.key.code) { case ESCAPE: break; case 't': do_cmd_save_screen_text(); break; case 'h': do_cmd_save_screen_html(0); break; case 'f': do_cmd_save_screen_html(1); break; } button_kill('f'); button_kill('t'); button_kill('h'); message_flush(); }