pancake
133fa058f0
Move colortable global into the RConsContext ##globals
2022-09-21 11:19:16 +02:00
pancake
629dc475dd
Remove global in cons.rgb ##globals
2022-09-10 11:11:43 +02:00
Paul B Mahol
6b28daadb2
Simplify ansi color mapping ##cons
2022-08-08 19:23:09 +02:00
Paul B Mahol
fb9eaa53cf
Fix picking colors for 256 colors terminals ##cons
...
The R_DIM call was using wrong max allowed value.
Do not try to loop over colors reserved for gray.
2022-07-25 06:22:01 -04:00
Lazula
d507bda91c
Remove R_EMPTY and R_EMPTY2
2022-03-13 11:26:10 +01:00
pancake
cf2ae64e88
Make RCons thread-friendly ##core
2022-01-21 17:04:56 +01:00
Lazula
2255bf8b5d
Many indentation style fixes
...
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
pancake
f3563759ef
Move more context fields out of the globals ##cons
...
* Fix |H |T and | suffixes when webserver in background
* Ignore noflush in the RCons.flush() call
2021-09-30 01:04:03 +02:00
pancake
bd888a2edf
Fix more vs warnings
2021-08-17 00:35:52 +00:00
pancake
0acb19b68a
Fix some warnings spotted by visual studio ( #18985 )
...
Co-authored-by: pancake <pancake@nopcode.org>
2021-08-16 20:45:17 +02:00
pancake
160fc95e66
Use (void) instead of () in function signatures ( #17026 ) ##refactoring
...
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
radare
72093ac706
Fix #16138 - Do not preincrement when it's not necessary ( #16151 )
2020-03-05 19:06:59 +01:00
Florian Märkl
204e038211
Fix r_cons_rgb_parse() harder ( #16061 )
...
Also fix init of some ret args in r_meta_print()
2020-02-27 20:13:34 +01:00
pancake
560c59c848
Fix ASAN segfault in RCons.rgbParse()
2020-02-18 01:04:08 +01:00
Khairul Azhar Kasmiran
50552e5219
Complete R_CONS_ATTR_ series ( #14411 )
2019-06-24 17:10:12 +02:00
Giovanni
eeab3a8655
Fixed oob in rgb.c ( #14339 )
2019-06-17 12:17:15 +02:00
Khairul Azhar Kasmiran
1bb248d761
Use id16 instead of id256 for color id ( #14316 )
2019-06-16 09:46:26 +02:00
Khairul Azhar Kasmiran
21982ae616
Use a less dark color scheme by default on scr.color=3 on non-Windows ( #14289 )
2019-06-12 18:23:59 +02:00
radare
b435d19515
Code cleanup in RCons
2019-06-09 18:50:36 +02:00
Khairul Azhar Kasmiran
a9de818b7f
Add bright colors to the colors table ##cons
2019-06-04 08:52:54 -04: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
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
Neven Sajko
4a722e80d8
Add braces to if, else, for, while ... ( #11504 )
2018-09-13 10:17:26 +02:00
Luca Di Bartolomeo
370f35c2a6
Vim-like autocompletion in visual offset prompt ( #10912 )
...
* Feat: autocompletion widget for offset prompt in visual mode
* Fix: screen refresh when erasing sel_widget
* Refactor: many small changes to the autocompletion widget
* Fix: colors in selection widget taken from palette
* Refactor: do not use utf8 inside selection widget
* Refactor: rename ANSI_ESC_CLEAR_LINE to R_CONS_CLEAR_LINE
2018-08-05 20:53:12 +02:00
Khairul Kasmiran
be623bce42
Removed some spaces
2018-05-01 07:47:10 +08:00
Florian Märkl
cee122e9df
Make r_cons_rgb_str() safe ( #9938 )
2018-04-21 11:31:24 +02:00
pancake
b323f78dc5
Fix a heap overflow (non-null terminated string) in RCons.rgb_str()
2018-03-07 18:08:19 +01:00
Fangrui Song
a244064276
Support more terminal attributes other than bold. ( #9535 )
2018-02-28 17:54:39 +01:00
pancake
7b5ab319f8
Revert V* behaviour, add < command and make dietline reuse rcons.readChar
2018-02-28 01:19:08 +01:00
xarkes
d5f57a7ccb
Fix fg+background colors handling
2018-02-24 19:14:55 +01:00
xarkes
b2b647a5f7
Renamed COLOR_MODE constants
2018-02-24 12:04:48 +01:00
xarkes
5e097dbae1
Killed cons->truecolor in favor of cons->color
2018-02-24 11:47:38 +01:00
xarkes
29158c3726
Html color parse ( #9492 )
2018-02-24 10:28:55 +01:00
xarkes
184d2ccb5c
Some colors fixes
2018-02-24 08:15:49 +01:00
pancake
caa4cc66d9
Dont initialize truecolor table if no color is needed
2018-02-24 00:19:15 +01:00
xarkes
7e98502666
Code refactoring for the color palette handling
...
* RConsPrintablePalette initialization
* Remove scr.rgbcolor
* Added RColor support to cons_pal_parse
* Added warnings about pal_set and missing event_update
* Code cleaning (char* to RColor), less rgb_parse
2018-02-23 19:00:47 +01:00
pancake
0b1e8eaecc
Fix almost all warnings from the msvc build
2017-12-19 00:18:39 +01:00
xarkes
0ee7073122
Fixed Bold color ascii parsing
2017-10-15 10:45:25 +02:00
pancake
9f7c98b5f8
scr.rainbow is false by default and color enhanced
2017-08-31 01:30:37 +02:00
pancake
7d4db495eb
Initial implementation of scr.rainbow for disasm and hexdump
2017-08-31 01:11:34 +02:00
SkUaTeR
beb80cfc16
Fixes for MSVC
2017-05-09 23:53:20 +02:00
xarkes
926f024909
Improved MSVC support (WIP)
2017-05-09 14:25:57 +02:00
Álvaro Felipe Melchor
cb0280d62a
Fix crash in ec command
2016-07-13 22:31:15 +02:00
pancake
ad85da85ff
Fix code indentation in libr_cons
2016-06-29 12:33:31 +02:00
oblique
d692aa441e
lookup_rgb now looks for the extended colors only
...
We do this because non-extended colors usually are used by users
to change the theme of their terminal, so they will be different from
the default ones.
2016-05-28 14:58:28 +02:00
oblique
e6381db6b4
Initialize 256 color table in the correct place
...
Because `color_table` was initialized only in `unrgb`, `rgb` was returning
values only from `approximate_rgb`. So if we call `rgb(0x5f, 0x87, 0xff)` it
will return `75` (i.e 5fafff) instead of `69`.
2016-05-28 14:58:28 +02:00
oblique
416edaea45
ANSI 256 colors have RGB values from 0 until 5 inclusive, not 0 until 6
2016-05-28 14:58:28 +02: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
7bfa3f42cf
Add graph.gv variables to set custom graphviz styles
2016-03-31 02:25:54 +02:00