309 Commits

Author SHA1 Message Date
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Sergi Àlvarez i Capilla
23f2fdd21d Add lowercase seven-segmented-ascii-art alphabet for ?ea ##print 2021-10-27 01:54:43 +02:00
Sergi Àlvarez i Capilla
287ce3a357 Implement ?ef = echo framed text command ##print 2021-10-27 01:54:43 +02:00
pancake
d1320d3e6e
Use RUtil.Str.ss in disasm when scr.demo is set ##visual 2021-10-18 18:45:47 +02:00
pancake
2423ced03c Implement ?ea and ~?ea to use the seven segment ascii art text rendering ##visual 2021-10-09 10:16:38 +02:00
pancake
5ee6961f0f Add @@@R to iterate over relocs ##shell 2021-09-23 13:15:41 +02:00
pancake
32f9826dd3
Split @@@ foreach logic into collect and iterate ##shell 2021-09-15 20:16:10 +02:00
pancake
015efc1971
Improved segmented memory addressing support ##core
* Add anal.cs eval variable to define the base segment value
* Moves the logic into RPrint and RNum to avoid dupes
2021-09-15 11:42:46 +02:00
pancake
913e23b2dd
Write proper help message for the ls and less commands ##shell (#19033)
* Also available via the recursive help
2021-08-30 14:16:08 +02:00
pancake
9a2636b32b
Remove other useless and incomplete treesitter leftovers and get +400 new commands in the recursive help ##shell 2021-08-14 18:28:20 +02:00
pancake
30704f54cd
Remove colons in "?" number conversion output ##shell 2021-08-14 01:50:59 +02:00
pancake
847d1671ce
Use RNum.math in "?b" to make '?b 1<<1' work ##shell 2021-08-13 20:29:17 +02:00
pancake
6fd0056568 Add &w command to wait and run for queued commands ##core 2021-07-05 21:57:34 +02:00
Anthoine Bourgeois
1b3e24257e Handle $() and `` as equal sub-command.
Test fix:
db/cmd/feat_quote Quotes and substitution - newshell

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
4cf97fadc2 Trim arguments to be closer to echo
Test fixed:
db/cmd/cmds hash comment and simple quote

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
murphy
22e23224e7 Fix 1380409 Resource leak 2021-04-01 21:52:06 +02:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
pancake
d2e62ed672
Fix #18316 - ?0 and ?1 were a bad idea, move to ?t (#18321) 2021-02-01 15:05:19 +01:00
ChD1
6187be3be6
Fixes in ae command handler and some null derefs (#18307) 2021-01-29 19:49:41 +01:00
pancake
49349cb320 Implement $i and $I numvars ##shell
* Warning: The temporal seek only works on oldshell
* Seek to the last address in current basic block
  `> s $I1@$Fe`
* Decomposes into:
  * $Fe = end address of function basic block
  * $I1 = one instruction backward
  * s = seek command is inmune to the @ tmpseek effects
2020-12-28 20:03:25 +01:00
pancake
adcfe0181f Code cleanup 2020-12-28 20:03:25 +01:00
pancake
48c1258206 Add missing vars from ?$? in ?$ and sort them alphabetically ##shell 2020-12-28 20:03:25 +01:00
ratijas
6d811285c2
Fix wording and whitespacing ##doc (#18065)
* Fix wording, whitespacing and other minor stuff
* cmd.c: ellaborated yy syntax, improved descriptions
  - replace "srcoff" with "origin"
* cmd.c(cmd_autocomplete):
  - refactor help into function: render autocomplete types with generic
    help subsystem;
  - "Types" heading now follow the "Usage" style by not being prefixed
    by a pipe character;
* cmd_anal.c: fix whitespaces & help text
* cmd_info.c: fix help text capitalization.
* cmd_print.c:
  - fix `pf` cmd help;
  - TODO: what pz? is doing here?
* cons.c:
  - refactor & better document r_cons_cmd_help();
  - fix whitespaces;
* visual & panels modes:
  - as of commit 46187fe4e14dc465dc6ac03fcc56a362f0b8e335, '!' no longer
    launches the r2048 game. The game itself it broken anyway, even when
    running from the Help menu in panels mode;
  - transitioning from panels to visual is not 'entering' but actually
    swapping/replacing visual panels with just panels, thus...
  - reword 'enter into the' to 'swap into' or even just 'enter', e.g.:
    "enter into the visual panels mode" -> "enter visual panels mode".
  - remove the "(dwm style)" words from a fortune tip, because I have no
    idea what it is, and it does not appear to be a valid command in any
    of the r2 modes.
  - update global help text.
* [WIP 2] Fix wording, whitespacing and other minor stuff
* visual.c:
  - r_core_visual_append_help(): first steps merging with
    r_cons_cmd_help from cons.c; use consistent colors for headers.
* [WIP 3] Fix wording, whitespacing and other minor stuff
* panels.c(__update_help):
  - shorten code and titles;
  - add comment to clarify that it is not a copy-paste error;
* [WIP 4] Fix wording, whitespacing and other minor stuff
panels.c, visual.c: tweak help text;
* [WIP 5] Fix wording, whitespacing and other minor stuff
* cmd_help.c: update global help text about visual mode -- it was
  outdated and overloaded.
* vmenus.c:
  - rename stuff, shuffle around static consts to reflect an actual
    ordering when viewing as a help text;
  - slightly improve help text rendering;
  - fix whitespaces;
* [WIP 6] Fix wording, whitespacing and other minor stuff
* lots of help text changed.  still working on proper commit message.
2020-12-21 01:12:08 +01:00
Lazula
4a1a624318
Clean up r_num ##util ##refactor (#18049)
* Fix function spacing for r_num functions
* Remove r_num_ntohs
* Rename r_num_to_trits to r_num_to_ternary for
  consistency with surrounding code
* Rename trits to ternary in other files
* Fix spacing in test_contrbtree.c
2020-12-17 22:24:27 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
pancake
7df28e1fb2
Implement the comma command to manage user-defined tables ##util (#17702)
* Import export in CSV and R2 formats
* Export in JSON, ascii-art, columns, r2, ..
* For example: aaa;aflt>$a;,.$a,/size/sum
2020-12-09 03:39:49 +01:00
Riccardo Schirone
1e58692071
Fix incorrect uses of printf-like functions ##refactor (#17648) 2020-10-13 16:26:15 +02:00
pancake
7c9280866d
Fix and improve ?e? help message (#17765) 2020-10-13 15:44:39 +02:00
Vasilij Schneidermann
e3999b7fcd
Add help string for path input prompt (#17742) 2020-10-13 12:48:49 +08:00
pancake
dc6a06b75e
Implement RCons.setTitle() for Windows and add ?et command ##cons (#17624)
* Implement r_cons_set_title for Windows ##cons

* Implement ?et command to change terminal title ##cons

* Apply Windows fix from @a1ext

Co-authored-by: pancake <pancake@nopcode.org>
2020-09-11 21:28:09 -05:00
pancake
226517b516
Implement ?== operator to compare strings ##shell (#17612) 2020-09-09 15:51:11 +02:00
Riccardo Schirone
2ffa790e0a
Generate help automatically ##newshell (#16782)
* Add additional RCmdStatuses
* ?? should be a cmd_identifier, not help_command
2020-06-17 21:29:23 +02:00
radare
c3dee9332c
Use @{} instead of @() and fix this modifier ##core (#16292) 2020-03-24 11:05:22 +01:00
pancake
c8b632bbff Fix #16219 - Add $DB variable for dbg.baddr ##debug 2020-03-16 12:57:44 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util (#16056) 2020-03-02 21:39:37 +01:00
Paul I
0e62dda341
Fix fgets() usage (#16068) 2020-02-29 20:47:10 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" (#16055)
This reverts commit 38b61c7bcfe55a727b9c3cedbc0f3147018e7c6b.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor 2020-02-25 17:53:09 +01:00
pancake
a15b8b7362 Add ?V0 ?V1 ?V2 - for semver support ##core 2020-01-18 02:46:36 +01:00
Khairul Kasmiran
881814575e Add missing semicolon 2019-10-09 00:21:09 +08:00
dok
e3086a8940 Add kitty clippy replacement :3 (#15232) ##core 2019-10-08 17:47:49 +02:00
dok
e0e8da58ef Add utf8 clippy (#15138) 2019-10-01 01:15:01 +02:00
Alexandre ZANNI
fa8b2178be fix help message of ? (#14944) 2019-09-01 19:13:19 +02:00
pancake
a228c9297b Implement 'cols' RTable.query to filter by column names ##print
* r_str_split_list() rewritten to support nth limit

r2 -qq -c 'aac;aflt size/gt/200,addr/cols/name/nbbs,nbbs/sort/inc' /bin/ls
2019-08-28 23:25:31 +02:00
radare
672fe95049
Implement RCons.echo() and use it from r2.cmd("echo64") ##cons (#14635)
Required for r2pipe programs to buffer output to be processed by r2
2019-07-24 13:59:57 +02:00
pancake
63c55aaf46 Fix ?b64- command 2019-07-23 02:50:35 +02:00
pancake
a6b6fe56ec Introduce ?e= and ?ed to print progressbar and 3D donut ##cons 2019-07-11 07:00:41 +02:00
pancake
5bf329eb78 Honor scr.wideoff in $? 2019-06-19 19:16:18 +02:00
radare
77c043c582
Implement r2p r2pipe commandline tool and !* as an alias for #!pipe (#14336) 2019-06-17 10:34:04 +02:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor 2019-06-16 20:58:40 +02:00