mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
Add support for UTF-8 line rendering
This commit is contained in:
@ -45,6 +45,10 @@ ifdef NO_SPLICING
|
|||||||
override CFLAGS_OPT += -DNO_SPLICING
|
override CFLAGS_OPT += -DNO_SPLICING
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef UTF
|
||||||
|
override CFLAGS_OPT += -DFANCY_BOXES_UTF
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef ASAN_BUILD
|
ifdef ASAN_BUILD
|
||||||
$(info Compiling ASAN version of binaries)
|
$(info Compiling ASAN version of binaries)
|
||||||
override CFLAGS += $(ASAN_CFLAGS)
|
override CFLAGS += $(ASAN_CFLAGS)
|
||||||
@ -391,6 +395,7 @@ help:
|
|||||||
@echo INTROSPECTION - compile afl-fuzz with mutation introspection
|
@echo INTROSPECTION - compile afl-fuzz with mutation introspection
|
||||||
@echo NO_PYTHON - disable python support
|
@echo NO_PYTHON - disable python support
|
||||||
@echo NO_SPLICING - disables splicing mutation in afl-fuzz, not recommended for normal fuzzing
|
@echo NO_SPLICING - disables splicing mutation in afl-fuzz, not recommended for normal fuzzing
|
||||||
|
@echo UTF - use UTF-8 for line rendering in status screen
|
||||||
@echo NO_NYX - disable building nyx mode dependencies
|
@echo NO_NYX - disable building nyx mode dependencies
|
||||||
@echo "NO_CORESIGHT - disable building coresight (arm64 only)"
|
@echo "NO_CORESIGHT - disable building coresight (arm64 only)"
|
||||||
@echo NO_UNICORN_ARM64 - disable building unicorn on arm64
|
@echo NO_UNICORN_ARM64 - disable building unicorn on arm64
|
||||||
|
@ -87,6 +87,7 @@ These build options exist:
|
|||||||
* INTROSPECTION - compile afl-fuzz with mutation introspection
|
* INTROSPECTION - compile afl-fuzz with mutation introspection
|
||||||
* NO_PYTHON - disable python support
|
* NO_PYTHON - disable python support
|
||||||
* NO_SPLICING - disables splicing mutation in afl-fuzz, not recommended for normal fuzzing
|
* NO_SPLICING - disables splicing mutation in afl-fuzz, not recommended for normal fuzzing
|
||||||
|
* UTF - use UTF-8 for line rendering in status screen
|
||||||
* NO_NYX - disable building nyx mode dependencies
|
* NO_NYX - disable building nyx mode dependencies
|
||||||
* NO_CORESIGHT - disable building coresight (arm64 only)
|
* NO_CORESIGHT - disable building coresight (arm64 only)
|
||||||
* NO_UNICORN_ARM64 - disable building unicorn on arm64
|
* NO_UNICORN_ARM64 - disable building unicorn on arm64
|
||||||
|
@ -116,42 +116,63 @@
|
|||||||
* Box drawing sequences *
|
* Box drawing sequences *
|
||||||
*************************/
|
*************************/
|
||||||
|
|
||||||
#ifdef FANCY_BOXES
|
#ifdef FANCY_BOXES_UTF
|
||||||
|
|
||||||
#define SET_G1 "\x1b)0" /* Set G1 for box drawing */
|
|
||||||
#define RESET_G1 "\x1b)B" /* Reset G1 to ASCII */
|
|
||||||
#define bSTART "\x0e" /* Enter G1 drawing mode */
|
|
||||||
#define bSTOP "\x0f" /* Leave G1 drawing mode */
|
|
||||||
#define bH "q" /* Horizontal line */
|
|
||||||
#define bV "x" /* Vertical line */
|
|
||||||
#define bLT "l" /* Left top corner */
|
|
||||||
#define bRT "k" /* Right top corner */
|
|
||||||
#define bLB "m" /* Left bottom corner */
|
|
||||||
#define bRB "j" /* Right bottom corner */
|
|
||||||
#define bX "n" /* Cross */
|
|
||||||
#define bVR "t" /* Vertical, branch right */
|
|
||||||
#define bVL "u" /* Vertical, branch left */
|
|
||||||
#define bHT "v" /* Horizontal, branch top */
|
|
||||||
#define bHB "w" /* Horizontal, branch bottom */
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define SET_G1 ""
|
#define SET_G1 ""
|
||||||
#define RESET_G1 ""
|
#define RESET_G1 ""
|
||||||
#define bSTART ""
|
#define bSTART ""
|
||||||
#define bSTOP ""
|
#define bSTOP ""
|
||||||
#define bH "-"
|
#define bH "\u2500" /* Horizontal line */
|
||||||
#define bV "|"
|
#define bV "\u2502" /* Vertical line */
|
||||||
#define bLT "+"
|
#define bLT "\u250c" /* Left top corner */
|
||||||
#define bRT "+"
|
#define bRT "\u2510" /* Right top corner */
|
||||||
#define bLB "+"
|
#define bLB "\u2514" /* Left bottom corner */
|
||||||
#define bRB "+"
|
#define bRB "\u2518" /* Right bottom corner */
|
||||||
#define bX "+"
|
#define bX "\u253c" /* Cross */
|
||||||
#define bVR "+"
|
#define bVR "\u251c" /* Vertical, branch right */
|
||||||
#define bVL "+"
|
#define bVL "\u2524" /* Vertical, branch left */
|
||||||
#define bHT "+"
|
#define bHT "\u2534" /* Horizontal, branch top */
|
||||||
#define bHB "+"
|
#define bHB "\u252c" /* Horizontal, branch bottom */
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#ifdef FANCY_BOXES
|
||||||
|
|
||||||
|
#define SET_G1 "\x1b)0" /* Set G1 for box drawing */
|
||||||
|
#define RESET_G1 "\x1b)B" /* Reset G1 to ASCII */
|
||||||
|
#define bSTART "\x0e" /* Enter G1 drawing mode */
|
||||||
|
#define bSTOP "\x0f" /* Leave G1 drawing mode */
|
||||||
|
#define bH "q" /* Horizontal line */
|
||||||
|
#define bV "x" /* Vertical line */
|
||||||
|
#define bLT "l" /* Left top corner */
|
||||||
|
#define bRT "k" /* Right top corner */
|
||||||
|
#define bLB "m" /* Left bottom corner */
|
||||||
|
#define bRB "j" /* Right bottom corner */
|
||||||
|
#define bX "n" /* Cross */
|
||||||
|
#define bVR "t" /* Vertical, branch right */
|
||||||
|
#define bVL "u" /* Vertical, branch left */
|
||||||
|
#define bHT "v" /* Horizontal, branch top */
|
||||||
|
#define bHB "w" /* Horizontal, branch bottom */
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define SET_G1 ""
|
||||||
|
#define RESET_G1 ""
|
||||||
|
#define bSTART ""
|
||||||
|
#define bSTOP ""
|
||||||
|
#define bH "-"
|
||||||
|
#define bV "|"
|
||||||
|
#define bLT "+"
|
||||||
|
#define bRT "+"
|
||||||
|
#define bLB "+"
|
||||||
|
#define bRB "+"
|
||||||
|
#define bX "+"
|
||||||
|
#define bVR "+"
|
||||||
|
#define bVL "+"
|
||||||
|
#define bHT "+"
|
||||||
|
#define bHB "+"
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif /* ^FANCY_BOXES */
|
#endif /* ^FANCY_BOXES */
|
||||||
|
|
||||||
/***********************
|
/***********************
|
||||||
|
Reference in New Issue
Block a user