The Official Radare2 Book | страница 83



Panels can be accessed by using v or by using ! from the visual mode.

|Visual Ascii Art Panels:

| | split the current panel vertically

| - split the current panel horizontally

| : run r2 command in prompt

| ; add/remove comment

| _ start the hud input mode

| \ show the user-friendly hud

| ? show this help

| ! run r2048 game

| . seek to PC or entrypoint

| * show decompiler in the current panel

| " create a panel from the list and replace the current one

| / highlight the keyword

| ( toggle snow

| & toggle cache

| [1-9] follow jmp/call identified by shortcut (like ;[1])

| ' ' (space) toggle graph / panels

| tab go to the next panel

| Enter start Zoom mode

| a toggle auto update for decompiler

| b browse symbols, flags, configurations, classes, ...

| c toggle cursor

| C toggle color

| d define in the current address. Same as Vd

| D show disassembly in the current panel

| e change title and command of current panel

| f set/add filter keywords

| F remove all the filters

| g go/seek to given offset

| G go/seek to highlight

| i insert hex

| hjkl move around (left-down-up-right)

| HJKL move around (left-down-up-right) by page

| m select the menu panel

| M open new custom frame

| n/N seek next/prev function/flag/hit (scr.nkey)

| p/P rotate panel layout

| q quit, or close a tab

| Q close all the tabs and quit

| r toggle callhints/jmphints/leahints

| R randomize color palette (ecr)

| s/S step in / step over

| t/T tab prompt / close a tab

| u/U undo / redo seek

| w start Window mode

| V go to the graph mode

| xX show xrefs/refs of current function from/to data/code

| z swap current panel with the first one

Use tab to move around the panels until you get to the targeted panel. Then, use hjkl, just like in vim, to scroll the panel you are currently on. Use S and s to step over/in, and all the panels should be updated dynamically while you are debugging. Either in the Registers or Stack panels, you can edit the values by inserting hex. This will be explained later. While hitting tab can help you moving between panels, it is highly recommended to use m to open the menu. As usual, you can use hjkl to move around the menu and will find tons of useful stuff there. You can also press " to quickly browse through the different options View offers and change the contents of the selected panel.