Makefile | 5 +++++ misc/haiku/Makefile | 5 +++++ src/nnn.c | 4 ++++ diff --git a/Makefile b/Makefile index 057ae34df2fd9758d403c0a29b49c9937ec69367..49b4b0a951bc9b5a2a2442065ad1368e8f19a0bf 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ O_QSORT := 0 # use Alexey Tourbin's QSORT implementation O_BENCH := 0 # benchmark mode (stops at first user input) O_NOSSN := 0 # enable session support O_NOUG := 0 # disable user, group name in status bar +O_CKBOARD := 0 # use checker board (stipple) in detail mode # convert targets to flags for backwards compatibility ifneq ($(filter debug,$(MAKECMDGOALS)),) @@ -98,6 +99,10 @@ endif ifeq ($(strip $(O_NOUG)),1) CPPFLAGS += -DNOUG +endif + +ifeq ($(strip $(O_CKBOARD)),1) + CPPFLAGS += -DCKBOARD endif ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1) diff --git a/misc/haiku/Makefile b/misc/haiku/Makefile index 9beb12ba0da8dc1cbab222a53b0d228dc1f019b3..b9b0dbf473866d8debe942cede2e04e882ecf34e 100644 --- a/misc/haiku/Makefile +++ b/misc/haiku/Makefile @@ -23,6 +23,7 @@ O_QSORT := 0 # use Alexey Tourbin's QSORT implementation O_BENCH := 0 # benchmark mode (stops at first user input) O_NOSSN := 0 # enable session support O_NOUG := 0 # disable user, group name in status bar +O_CKBOARD := 0 # use checker board (stipple) in detail mode # convert targets to flags for backwards compatibility ifneq ($(filter debug,$(MAKECMDGOALS)),) @@ -97,6 +98,10 @@ endif ifeq ($(strip $(O_NOUG)),1) CPPFLAGS += -DNOUG +endif + +ifeq ($(strip $(O_CKBOARD)),1) + CPPFLAGS += -DCKBOARD endif ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1) diff --git a/src/nnn.c b/src/nnn.c index cbfcfdf8a066ab8333aab90ee278b41fb1670142..967363d3c4303edd4f412283378fd86952fd22ea 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3736,7 +3736,11 @@ static void printent_long(const struct entry *ent, uint_t namecols, bool sel) { int attrs1 = g_state.oldcolor ? A_DIM : COLOR_PAIR(C_MIS); +#ifdef CKBOARD addch(sel ? ACS_CKBOARD : ' '); +#else + addch(sel ? '>' : ' '); +#endif attron(attrs1); print_details(ent); attroff(attrs1);