Commit Graph

57 Commits

Author SHA1 Message Date
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
991c39a601 More whitelisted auto-indented files 2015-12-08 13:24:21 +01:00
pancake
d24d069ade Initial work on automatic indent whitelisting 2015-12-08 12:55:29 +01:00
pancake
9c9bb2dbd5 Memory optimization for flags (-70%) + some warnfixes + sdb-sync 2015-11-08 23:38:42 +01:00
Riccardo Schirone
e54462343d core/graph: honor scr.color also for edges and current box 2015-10-14 00:10:17 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
jvoisin
fbe8b6d938 Once again, clang-analyzer strikes! 2015-09-04 15:12:42 +02:00
Riccardo Schirone
e2482345eb cons/canvas: fix bold attributes 2015-08-09 22:17:56 +02:00
Álvaro Felipe Melchor
19c48e7edb Fix oob read in prefixline and oob write in r_cons_canvas_write 2015-08-01 00:42:30 +02:00
Jeffrey Crowell
05638b4cfe fix COV (REVERSE_NULL) 2015-07-30 23:18:28 -04:00
Riccardo Schirone
6007ca4fde cons/canvas,core/graph: fix some CIDs 2015-07-31 00:05:56 +02:00
Riccardo Schirone
a26c484db9 cons/canvas: fix w32 build 2015-07-30 15:40:15 +02:00
Riccardo Schirone
fc42e8a2a6 cons/canvas: support ansi strings
core/graph: use colored disassembly as default
2015-07-30 01:05:31 +02:00
Riccardo Schirone
94f303ca36 core/graph: clean code + fixes
cons/canvas_line: split style in color and symbol

In this way you can choose to apply a color and/or a symbol (t/f/v) to a
line. This patch also changes core/graph to avoid t/f symbols in the
middle of long edges.

cons/canvas_line: fix "reversed" edge

core/graph: center current node when changing function
2015-07-27 12:29:18 +02:00
pancake
df25085ffe Add custom color support for graphs and handle VVR and VVVq 2015-07-15 15:54:20 +02:00
pancake
f802bdf3b1 Add afg command to print non-interactive ascii-art graph 2015-06-11 03:55:15 +02:00
Riccardo Schirone
8cb35540c7 cons: use all the available space in the screen
* r_cons_get_size should return the number of rows, why is there a "-1"?
* the newline at the end of the canvas converted to string (in
  r_cons_canvas_to_string) make things shift up one line
* r_cons_canvas_write should consider "left" (which is the number of
  chars available from x until the right side of the screen) and not
  "left - 1". Moreover, since "slen" is at most the maximum number of
  characters that we can print in that row, there is no need to check
  if we can write those bytes
* r_cons_flush usually add a newline, but we shouldn't print it because
  otherwise everything will shift up by one line
2015-06-04 19:11:16 +02:00
pancake
bb151c1607 Fix two out-of-canvas node location and missing box lines issues 2015-05-31 22:27:47 +02:00
Riccardo Schirone
36a89dc370 cons/canvas: fix printing of partially visible borders of a box 2015-05-31 20:20:32 +02:00
Riccardo Schirone
ac3a153925 cons/canvas: remove useless condition because always true 2015-05-31 20:20:31 +02:00
Riccardo Schirone
632aa56bb8 r_cons_canvas_write: not stop writing when there is an empty line
some lines can seem empty because what we want to write was cropped, but
this shouldn't deny the next lines, that can be longer and so, still
visible, to be printed.
2015-05-31 20:20:31 +02:00
pancake
4b1a487649 Fix crash in RConsCanvas and type in RCoreConfig description 2015-03-23 10:19:53 +01:00
pancake
261a4d2faa Fix #2174 - Crash in V!! 2015-03-23 01:28:32 +01:00
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
pancake
ef293e4b66 Initial PoC for the Visual 2.0 (for now: VV) 2015-03-05 02:07:53 +01:00
r0nk
d196673c48 implemented a binary search for canvas 2015-02-19 01:18:50 -05:00
jvoisin
7a1975bd06 Add some comments for graphs + coverifix 2015-02-17 17:03:16 +01:00
r0nk
87ae355a3a removed repetitive code. 2015-02-16 03:23:02 +01:00
pancake
d3ddbea631 Colorize node box 2015-02-15 21:48:46 +01:00
pancake
40edd608d1 Bring back the old edge style in the aa graph. Fix self loops 2015-02-15 21:34:12 +01:00
r0nk
e0989630d8 optimized canvas search 2015-02-15 13:34:13 +01:00
pancake
421dd1243f Obey scr.color in RConsCanvas from RCore.cmd("VV") 2015-02-14 04:50:29 +01:00
pancake
e1fec8fcab Fix trash chars in rconscanvas-color 2015-02-14 04:40:08 +01:00
r0nk
7bf5f13ce6 Initial support for colors in RConsCanvas
started on cons_canvas color support. Still a bit buggy, working out the kinks.
Yanked my old line drawing algo from ward, still working on colors.
Still incomplete, Changed the way that attributes work, still lots of strange behavior, It appears that most attributes aren't where they belong.
still not finished. Ok now the lines and colors are working, but the colors are overwriting other sections. Working on preventing that.
colors are now working, but they are _so. slow._
woops, removed the debugging printf
Figured out the big evil function that has to be optimized, attr_at takes aprox 91% of the cpu, so he needs to be fixed
Signed-off-by: r0nk <r00nk@simplecpu.com>
Signed-off-by: r0nk <r00nk@simplecpu.com>
2015-02-14 04:18:43 +01:00
pancake
21093b2f2d Fix graph text node align issue for negative X deltas 2015-01-19 23:06:43 +01:00
pancake
377ec87272 Fix two null deref in RConsCanvas and another left border glitch 2015-01-11 02:54:27 +01:00
pancake
c042bcd789 Fix infinite loop in rcons.canvas 2015-01-11 02:34:28 +01:00
pancake
d713debdfc Fix left and top border issues with canvas text (nicer graphs) 2015-01-11 02:28:59 +01:00
pancake
790ce09483 Fix right border graph canvas glitch 2015-01-10 04:21:10 +01:00
pancake
c7e1fad6bc Add Vn (mini-ascii-art graph visual mode) 2015-01-09 11:39:25 +01:00
pancake
a18f7819d9 Fix the support for 0x0 sized terminals (adb shell) 2014-09-24 03:17:43 +02:00
pancake
212d15803c Fix crash in VVV 2014-09-08 17:10:53 +02:00
pancake
85277d7f0c Fix an overflow and another glitch in ascii graphs 2014-08-01 01:09:05 +02:00
pancake
3fc1e58bc3 Fix oob glitch in ascii art graph 2014-08-01 00:54:04 +02:00
pancake
1ce6e7c45b Add rahash2 -d and -D to encode/decode base64 strings and files 2014-05-16 14:34:36 +02:00
jvoisin
c6729cb640 Fix CID 1211146 2014-05-10 23:06:15 +02:00
pancake
ee276298b2 Fix memleaks in radiff2, segfaults in 8051 and aagraph 2014-05-09 03:06:05 +02:00
pancake
201231a7a5 Fix remaining segfault in RCons.canvas, still trashy output 2014-05-08 02:58:20 +02:00
pancake
7fa79a3f36 Fix some RCons.canvas bugs 2014-05-08 02:26:42 +02:00