From 2e6273f2fcd6c540a200a3943bd71e336988484a Mon Sep 17 00:00:00 2001 From: BestPig Date: Fri, 23 Jul 2021 18:45:05 +0200 Subject: [PATCH] Fix some unicode printing problem with ncurses --- Makefile | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index af468ea..1c77369 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,10 @@ ifeq ($(UNAME), Linux) ifeq (, $(shell which $(PKG_CONFIG) 2> /dev/null)) $(error "pkg-config command not found") endif - ifeq (, $(shell $(PKG_CONFIG) ncurses --libs 2> /dev/null)) + ifeq (, $(shell $(PKG_CONFIG) ncursesw --libs 2> /dev/null)) $(error "ncurses package not found") endif - override LDFLAGS += $(shell $(PKG_CONFIG) ncurses --libs) + override LDFLAGS += $(shell $(PKG_CONFIG) ncursesw --libs) endif ifeq ($(UNAME), Darwin) override LDFLAGS += -lncurses diff --git a/README.md b/README.md index 13584f2..7f7bb12 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ How do you build it from source On FreeBSD, substitute `make` with `gmake`. -It depends on library ncurses, you may have to install corresponding packages (may be something like 'libncurses5-dev' or 'ncurses-devel'). +It depends on library ncurses, you may have to install corresponding packages (may be something like 'libncurses5-dev', 'libncursesw6' or 'ncurses-devel'). How do you run it -----------------