Update README on dependencies
MANPREFIX = $(PREFIX)/share/man
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
-LDLIBS = -lcurses
+LDLIBS = -lncursesw
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h
MANPREFIX = $(PREFIX)/share/man
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
-LDLIBS = -lcurses
+LDLIBS = -lncursesw
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h
### Installation
-nnn needs a curses implementation and standard libc.
+nnn needs libncursesw on Linux (or ncurses on OS X) and standard libc.
- If you are using Homebrew, run:
keypad(stdscr, TRUE);
curs_set(FALSE); /* Hide cursor */
timeout(1000); /* One second */
-
- /* Set locale */
- setlocale(LC_ALL, "");
}
static void
exit(1);
}
+ /* Set locale */
+ setlocale(LC_ALL, "");
+
initcurses();
browse(ipath, ifilter);
exitcurses();