mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
make option O_CKBOARD for checker board indicator in detail mode
This commit is contained in:
parent
903a4b3a66
commit
a1cb764943
5
Makefile
5
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)),)
|
||||
|
@ -100,6 +101,10 @@ ifeq ($(strip $(O_NOUG)),1)
|
|||
CPPFLAGS += -DNOUG
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(O_CKBOARD)),1)
|
||||
CPPFLAGS += -DCKBOARD
|
||||
endif
|
||||
|
||||
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
|
||||
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
|
||||
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)
|
||||
|
|
|
@ -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)),)
|
||||
|
@ -99,6 +100,10 @@ ifeq ($(strip $(O_NOUG)),1)
|
|||
CPPFLAGS += -DNOUG
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(O_CKBOARD)),1)
|
||||
CPPFLAGS += -DCKBOARD
|
||||
endif
|
||||
|
||||
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
|
||||
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
|
||||
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue