Commit Graph

99 Commits

Author SHA1 Message Date
pancake
654e246fc0 Remove dupe api in r_cons 2019-03-13 12:41:32 +01:00
pancake
0c9ccb45de Add prompt handling in r_cons_gets ##cons 2019-03-12 22:29:32 +01:00
pancake
e1a4c0fb61 Add r_cons_gets() API 2019-03-12 22:27:20 +01: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
Khairul Kasmiran
c7791ab29e r_cons_singleton() -> r_cons_singleton () 2019-02-07 18:07:37 +08:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
pancake
5df3872b9d Boolify r_cons_yesno() 2018-12-04 12:49:43 +01:00
lzutao
5c9eb4f43b Fix #12053 - Flushing stdin is illegal 2018-11-15 19:06:57 +01:00
dav1901
e25a5b6222 Fix two minor memory overruns 2018-11-07 18:14:08 +01:00
gordon-quad
d2102956cd Add support for shift-arrows in st and rxvt-unicode ##console 2018-11-02 18:44:43 +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
radare
6bc3d5562f
Fix #11851 - Cursor and echo glitches in Visual ##visual 2018-10-19 13:42:38 +02:00
radare
478dd2377a
Fix #11566 - Regression in r2 = introduced by threading and siol (#11598)
Still not perfect because stdin works, but the tty size/configuration
is not correct when reopening.
2018-09-21 00:13:19 +02:00
Florian Märkl
c05c85aa9f Reimplement TCP Server with libuv and add configure/meson flags (#11403) 2018-09-17 12:07:00 +02:00
Neven Sajko
07e1359daf libr/cons: Fix EOT handling (#11474) 2018-09-13 19:44:27 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Neven Sajko
2b7990fcee libr/cons: Fix SIGWINCH logic (#11470)
Fixes two bugs; puts pselect in a loop to enable resizing window more
than once before there is any input, and reset sigwinchFlag to zero when
resizing window.
2018-09-12 11:55:20 +02:00
Neven Sajko
b0436220dc libr/cons: Do proper signal handling, use pselect (#11376)
Fixes async-signal-safety and changing errno within the signal handler
for SIGWINCH, which can cause crashes and maybe security issues.

For async-signal-safety make the signal handler just set a flag, which
is checked for while waiting for input (pselect).

SIGWINCH is blocked process-wide, except in pselect.
2018-09-03 23:46:13 +02:00
Florian Märkl
f8a734a58b Fix sleeping for readchar on Windows (#10549) 2018-06-30 02:45:17 +02:00
Florian Märkl
6730a93e9c Sleep during prompt
Sleep during prompt for Windows
2018-06-17 11:34:03 +02:00
Khairul Kasmiran
2faadf6d86 r_cons_singleton() 🠊 r_cons_singleton () 2018-05-02 21:36:08 +08:00
vane11ope
4f42a6381a fixed panels blinking all the time when scrolling 2018-04-09 09:42:22 +02:00
Oscar Salvador
58369b86f5 Some fixups for #9682 (#9688) 2018-03-14 13:08:01 +01:00
pancake
6ac290eaec r_cons_yesno() is now echo-ing the pressed key 2018-03-07 01:19:04 +01:00
pancake
df48171b2d Update coding style rules for braces 2018-02-28 01:24:03 +01:00
pancake
976422cc0b Improve RCons.readPush and add .readFlush() to make V* happy 2018-02-28 00:37:19 +01:00
pancake
2497fb6f51 Implement r_cons_readpush() new api and fix the V... automation 2018-02-28 00:26:41 +01:00
pancake
68f7e54d2e Fix build 2018-01-02 19:31:02 +01:00
SkUaTeR
467eaed971 Add timeout to readchar_win 2017-12-29 19:55:34 +01:00
pancake
df4ddfc745 Fix last covs 2017-12-20 15:05:33 +01:00
pancake
0851129765 Implement r_cons_readchar_timeout. wink wink 2017-12-18 02:44:51 +01:00
pancake
4ab226a91b Fix #8340 - shift-tab in V! is working again 2017-08-27 19:31:30 +02:00
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +02:00
pancake
024998890b Fix #6942 - show prompt when scr.fgets=true 2017-03-08 23:36:45 +01:00
Álvaro Felipe Melchor
224b3c3319 fix some coverities 2016-12-18 23:41:55 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
pancake
69b70a2a94 Fix #5643 - Handle re/av-page in V_ hud mode 2016-09-20 13:14:34 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
dee162875d Fix big-endian bug in r_cons_yesno() 2016-09-19 01:35:36 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
Jeffrey Crowell
10b9fc1db0 rm unneeded calls to r_cons_printf 2016-06-26 00:17:16 -04:00
Sven Steinbauer
8da8ad740f Cleanup fixes
* For commit comments and compiler errors
* Fixes for PR comments
* fix some "infer fixes" commits

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
pancake
8a05a74cfb Fix #4819 - honor arrows in V! 2016-05-09 11:13:37 +02:00
pancake
b1a9899dc1 Fixes for #3846 - agg help messages 2016-01-05 00:47:41 +01:00
pancake
d38cd15837 Fix #3280 - visual ^z breaking mouse wheel 2015-09-13 16:11:31 +02:00
Jeffrey Crowell
0a1b56f125 fix memleaks (from COV) 2015-08-31 00:42:21 -04:00
pancake
1e1b1adf2a Major enhacements for the V! visual panels 2015-08-31 05:06:01 +02:00
pancake
d25c520a18 Add pxr and pxd in px?. Initial PoC for mouse click support 2015-05-27 23:46:41 +02:00
pancake
2c28fb56f8 Handle arrow escape codes for Haiku/BeOS (by capi_x) 2015-04-25 04:06:14 +02:00
pancake
070836b326 Honor SIGSTOP without breaking ^Z 2015-04-20 01:05:22 +02:00