371 Commits

Author SHA1 Message Date
dodococo
879e4723bd Fix autocompletion popup (#14958) 2019-09-04 19:02:13 +02:00
Florian Märkl
f5c5d0afa3 Make cmd_depth task-local (#14888) 2019-08-24 20:22:31 +02:00
dodococo
2c53ca5bf4 Fixes #14396: Does not highlight dot based output (#14787)
* Fixes #14396: Does not highlight dot based output

* Disable highlight for ag* commands

* Added space in function call

* Other pr issues

* Fixed lgtm error
2019-08-12 23:54:34 +08:00
pancake
7c688dd174 Improve RConsBind and use it from RBin via iz^C ##bin 2019-07-25 14:37:46 +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
Florian Märkl
992c04ccf2
Fix grep in tasks ##cons (#14603) 2019-07-21 14:04:52 +02:00
ricardoapl
51c86fe6cc Fix i subcmd help grep ##core (#14563)
* zero RConsGrep in cons_grep_reset() instead
* fix grep expr in cmd_info help
2019-07-14 04:47:08 +02:00
Khairul Azhar Kasmiran
56459bb3ef Fix missing title line in Visual mode when under scr.ansicon=0 (#14490) 2019-07-05 14:39:53 +02:00
GustavoLCR
1d3a2deb96 Enable click mouse input on Windows ##cons 2019-07-05 09:49:46 +02:00
pancake
875feb8caf Fix scr.wheel.speed regression 2019-07-04 12:12:24 +02:00
pancake
eaad0f5152 Add RCons.get_click(), initial integration in visual and panels ##cons 2019-07-02 04:12:14 +02:00
pancake
cb6e97cb80 Initial support of mouse wheel+click ##cons 2019-07-02 04:12:14 +02:00
Khairul Kasmiran
ce305f0b39 Remove a space 2019-06-28 19:43:42 +08:00
GustavoLCR
a4f14aee64 Fix visual bug on Windows 2019-06-19 15:10:43 +08:00
Khairul Azhar Kasmiran
cfc9aa0926 Rename r_cons_get_ansicon() since it's confusing (#14347) 2019-06-18 18:28:10 +02:00
radare
b435d19515
Code cleanup in RCons 2019-06-09 18:50:36 +02:00
GustavoLCR
7a10af4057 Initial implementation of heap parsing for Windows (#14218) ##debug 2019-06-05 15:20:38 -04:00
Khairul Azhar Kasmiran
80970f9a14 Fix r_cons_get_ansicon leak (#14179) 2019-05-29 11:09:59 +02:00
GustavoLCR
6b6051cddf Fix ansicon detection with UTF enabled (#14166) 2019-05-27 18:21:48 +02:00
Khairul Azhar Kasmiran
3aed0e88d5 Default to scr.color=COLOR_MODE_16 for Alacritty on Windows ##cons 2019-05-27 18:21:17 +02:00
Khairul Azhar Kasmiran
aba69dde4f Set scr.ansicon=1 if running under Windows 10 Creators Update or later ##windows 2019-05-26 11:44:25 +02:00
Khairul Azhar Kasmiran
7d449419bb Implement r_cons_show_cursor for Windows (#14151) 2019-05-25 09:46:21 +02:00
Khairul Azhar Kasmiran
3e3d97b198 Support scr.fps on non-ansicon Windows 2019-05-22 10:02:11 +02:00
Khairul Azhar Kasmiran
1d09e12d96 Use bool instead of int in calls to r_cons_w32_print 2019-05-20 09:35:48 +08:00
David CARLIER
b4015791be palloc return checks ##cons (#14091) 2019-05-17 16:48:18 +02:00
dodococo
f3e4d0239e Fix clear screen issues in the autocompletion widget in the prompt ##cons 2019-05-13 22:35:35 +02:00
dodococo
d1147cf087 Initial RLine autocompletion using the popup widget (e scr.prompt.popup) ##cons (#14037) 2019-05-13 16:17:05 +02:00
Florian Märkl
d16dfd7b84 Print "Task finished" only if interactive ##core 2019-04-04 14:59:27 +02:00
GustavoLCR
cc25216bb8 Refresh on resize and fix mouse input on visual foor Windows ##windows 2019-04-01 14:34:41 +02:00
pancake
67bc30a5f6 Fix #13367 - last line glitch in r_cons_strcat_at 2019-03-25 21:18:17 +01:00
GustavoLCR
3fba693b91 Add support for UTF console input in Windows (#13338) ##windows
* Add support for UTF console input in Windows
* Convert ANSI input to UTF-8
* Convert UTF-8 to acp when calling ANSI version of functions
* Determine if Windows console output is UTF-8 on the fly
2019-03-18 16:05:38 +08:00
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
radare
be141c1c03
Avoid big writes in a single syscall ##cons 2019-02-03 12:05:04 -06:00
Florian Märkl
fc1bab9136 Copy pal when creating a new task (#12835) 2019-01-19 01:29:30 +01:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
pancake
0087f46357 Initial implementation of visual gadgets ##visual
* Run any command at any position in the screen
* Crop the output of the command to avoid glitches
* Works in visual mode as well as in console
* Add support for visual gadgets in graph and panels views ##visual
* Implement pgm command to move gadgets around ##visual
2019-01-11 09:59:17 +01:00
radare
c98136300d
Fix #12667 - Fix heap overflow in RCons.grep ##cons 2019-01-07 16:08:54 +01:00
Florian Märkl
2462653a23 Optimize ds_align_comment() ##disasm (#12560)
* Add r_str_len_utf8_ansi() ##util
* Use r_str_len_utf8_ansi() for line len in ##disasm
* Fix delete_last_comment()
2018-12-25 19:51:06 +01:00
David CARLIER
75dfeeffc6 Various build compiler warning fixes attempts. (#12468) 2018-12-12 22:04:11 +01:00
lzutao
becc3000a8 Change unneeded global static vars to local static (#12324) 2018-11-26 23:21:19 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
r_num_abs:

- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long

r_num_units:

- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point

  * This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss

r_num_tail_base:

- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble

Update all functions to use with new r_num_units:

- Remove side effect when using in other functions like cb_printf

* Trim trailing .0 when input is power of 2
2018-11-14 23:35:44 +01:00
pancake
9556ebb1f9 More warning issues 2018-11-14 13:47:43 +01:00
Artem Zinenko
4a2bc97a35 Fix #11918 - Moved r_print.h into r_util/r_print.h 2018-11-14 10:54:22 +01:00
dav1901
9b0fbf1ee4 Minor code cleanups - free/R_FREE/etc 2018-11-13 00:23:49 +01:00
radare
35a5c42a52
Add LL command to lock screen ##visual
* Clear terminal backbuffer
* Password not saved in command history
* Show timestamp of last attempt
* Do a random sleep after every read to avoid time attacks
* ^Z is disabled
* Can be used from shell `r2 -qcLL --`
2018-10-31 01:52:08 +01:00
Riccardo Schirone
6080edf13b
Fix r_log when used for r_assert (#11971)
- Split r_log in r_vlog/r_log and make r_assert_log use r_vlog because it
needs to provide a va_list.
- Rename _r_internal_logging to r_log because that's a R_API function
and it needs a good name
- Make R2_CHECKS_LEVEL dependent on 'buildtype' option
- Make R_LOGLVL_WARN the default log level when in debug mode (default)
- introduce ASSERT_STDOUT macro to print assert failures to stdout
- use ASSERT_STDOUT in the Travis env with asan
- use list of callbacks in RLog instead of just one.
2018-10-29 11:48:12 +01:00
Aaron
a6725edb1f Fix #10324 - Implement RLog API for leveled logging ##core (#11786) 2018-10-27 05:29:22 +02:00
pancake
15ab430fdd Fix crash in XNU when calling ttyname() on an invalid fd 2018-10-08 00:02:22 +02:00