diff options
| author | 2017-04-20 19:45:52 +0530 | |
|---|---|---|
| committer | 2017-04-20 20:10:58 +0530 | |
| commit | 89224cfa980f4e3470e7e52decf5f9f19831dba6 (patch) | |
| tree | 0e77a84ab9858be9f5bd338413681dfe732e9c4c /Makefile.generic | |
| parent | 01c1ef6e58c195821ff9ccb9489bd99a9101b0ec (diff) | |
| download | nnn-89224cfa980f4e3470e7e52decf5f9f19831dba6.tar.gz | |
Use readline() at chdir prompt
With the features the readline library provides it would be too naive to ignore.
We break out of the curses mode into the prompt and get back in.
This change introduces dependency on libncurses.
Diffstat (limited to 'Makefile.generic')
| -rw-r--r-- | Makefile.generic | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.generic b/Makefile.generic index f96cecf..075ba0c 100644 --- a/Makefile.generic +++ b/Makefile.generic @@ -4,10 +4,11 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter +LDLIBS = -lreadline ifeq ($(shell uname), Darwin) - LDLIBS = -lncurses + LDLIBS += -lncurses else - LDLIBS = -lncursesw + LDLIBS += -lncursesw endif DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE |