mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-26 17:15:38 +00:00
Add VV= to rotate graph.layout, and use less in VV?
This commit is contained in:
parent
3c67ec8f5d
commit
d23dac3f14
@ -3698,6 +3698,18 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
|||||||
r_config_set (core->config, "cmd.gprompt", buf);
|
r_config_set (core->config, "cmd.gprompt", buf);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case '=':
|
||||||
|
{
|
||||||
|
int e = r_config_get_i (core->config, "graph.layout");
|
||||||
|
if (++e > 1) {
|
||||||
|
e = 0;
|
||||||
|
}
|
||||||
|
r_config_set_i (core->config, "graph.layout", e);
|
||||||
|
g->layout = r_config_get_i (core->config, "graph.layout");
|
||||||
|
g->need_reload_nodes = true;
|
||||||
|
get_bbupdate (g, core, fcn);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
{
|
{
|
||||||
int e = r_config_get_i (core->config, "graph.edges");
|
int e = r_config_get_i (core->config, "graph.edges");
|
||||||
@ -3784,6 +3796,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
|||||||
" ; - add comment in current basic block\n"
|
" ; - add comment in current basic block\n"
|
||||||
" . - center graph to the current node\n"
|
" . - center graph to the current node\n"
|
||||||
" ^ - seek to the first bb of the function\n"
|
" ^ - seek to the first bb of the function\n"
|
||||||
|
" = - toggle graph.layout\n"
|
||||||
" :cmd - run radare command\n"
|
" :cmd - run radare command\n"
|
||||||
" ' - toggle graph.comments\n"
|
" ' - toggle graph.comments\n"
|
||||||
" \" - toggle graph.refs\n"
|
" \" - toggle graph.refs\n"
|
||||||
@ -3823,7 +3836,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
|||||||
" y - toggle node folding/minification\n"
|
" y - toggle node folding/minification\n"
|
||||||
" Y - toggle tiny graph\n"
|
" Y - toggle tiny graph\n"
|
||||||
" Z - follow parent node");
|
" Z - follow parent node");
|
||||||
r_cons_flush ();
|
r_cons_less ();
|
||||||
r_cons_any_key (NULL);
|
r_cons_any_key (NULL);
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user