From fc8773f97ea52cfc0a9c0b1930ddb90668903055 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 21 Oct 2014 01:20:06 +0200 Subject: [PATCH] Disable mouse in Vd and longer showtime in scr.feedback=2 --- libr/core/visual.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libr/core/visual.c b/libr/core/visual.c index 6c02a713ab..6675dc7800 100644 --- a/libr/core/visual.c +++ b/libr/core/visual.c @@ -344,7 +344,7 @@ R_API void r_core_visual_show_char (RCore *core, char ch) { r_cons_printf ("| %c |\n", ch); r_cons_printf ("'---'\n"); r_cons_flush (); - r_sys_usleep (90000); + r_sys_sleep (1); } R_API void r_core_visual_seek_animation (RCore *core, ut64 addr) { @@ -375,7 +375,7 @@ R_API void r_core_visual_seek_animation (RCore *core, ut64 addr) { r_cons_printf ("'----'\n"); } r_cons_flush(); - r_sys_usleep(90000); + r_sys_usleep (90000); #endif r_core_seek (core, addr, 1); } @@ -689,7 +689,12 @@ R_API int r_core_visual_cmd(RCore *core, int ch) { r_config_set_i (core->config, "scr.color", color); break; case 'd': - r_core_visual_define (core); + { + int wheel = r_config_get_i (core->config, "scr.wheel"); + if (wheel) r_cons_enable_mouse (R_FALSE); + r_core_visual_define (core); + if (wheel) r_cons_enable_mouse (R_TRUE); + } break; case 'D': setdiff (core);