R_API void r_cons_visual_flush() { if (I.noflush) return; r_cons_highlight (I.highlight); if (!I.null) { /* TODO: this ifdef must go in the function body */ #if __WINDOWS__ && !__CYGWIN__ if (I.ansicon) { r_cons_visual_write (I.buffer); } else { r_cons_w32_print ((const ut8*)I.buffer, I.buffer_len, 1); } #else r_cons_visual_write (I.buffer); #endif } r_cons_reset (); if (I.fps) { int w = r_cons_get_size (NULL); int fps = 0; static ut64 prev = 0LL; //r_sys_now (); fps = 0; if (prev) { ut64 now = r_sys_now (); ut64 diff = now-prev; fps = (diff<1000000)? (1000000/diff): 0; prev = now; } else prev = r_sys_now (); eprintf ("\x1b[0;%dH[%d FPS] \n", w-10, fps); } }
R_API void r_cons_visual_flush() { if (I.noflush) return; /* TODO: this ifdef must go in the function body */ #if __WINDOWS__ r_cons_w32_print ((ut8*)I.buffer, 1); #else r_cons_visual_write (I.buffer); #endif r_cons_reset (); return; }