From 89224cfa980f4e3470e7e52decf5f9f19831dba6 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 20 Apr 2017 19:45:52 +0530 Subject: 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. --- Makefile.generic | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile.generic') 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 -- cgit v1.2.3-70-g09d2