mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-04 12:27:40 +00:00
Support background color in rgb mode for scr.html
This commit is contained in:
parent
4163a0511e
commit
6db6c6c72f
@ -729,6 +729,14 @@ R_API int r_cons_html_print(const char *ptr) {
|
|||||||
esc = 0;
|
esc = 0;
|
||||||
str = ptr;
|
str = ptr;
|
||||||
continue;
|
continue;
|
||||||
|
} else if (!strncmp (ptr, "48;5;", 5)) {
|
||||||
|
char *end = strchr (ptr, 'm');
|
||||||
|
printf ("<font style='background-color:%s'>", gethtmlrgb (ptr));
|
||||||
|
fflush (stdout);
|
||||||
|
tag_font = true;
|
||||||
|
ptr = end;
|
||||||
|
str = ptr + 1;
|
||||||
|
esc = 0;
|
||||||
} else if (!strncmp (ptr, "38;5;", 5)) {
|
} else if (!strncmp (ptr, "38;5;", 5)) {
|
||||||
char *end = strchr (ptr, 'm');
|
char *end = strchr (ptr, 'm');
|
||||||
printf ("<font color='%s'>", gethtmlrgb (ptr));
|
printf ("<font color='%s'>", gethtmlrgb (ptr));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user