瀏覽代碼

Use libncursesw for internationalization

Update README on dependencies
master
Arun Prakash Jana 7 年之前
父節點
當前提交
5b68fa1a67
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 4 個檔案被更改,包括 6 行新增6 行删除
  1. +1
    -1
      Makefile
  2. +1
    -1
      Makefile.generic
  3. +1
    -1
      README.md
  4. +3
    -3
      nnn.c

+ 1
- 1
Makefile 查看文件

@@ -4,7 +4,7 @@ PREFIX = /usr/local
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


+ 1
- 1
Makefile.generic 查看文件

@@ -4,7 +4,7 @@ PREFIX = /usr/local
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


+ 1
- 1
README.md 查看文件

@@ -139,7 +139,7 @@ nnn vs. ranger memory usage while viewing a directory with 10,178 files, sorted

### 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:



+ 3
- 3
nnn.c 查看文件

@@ -477,9 +477,6 @@ initcurses(void)
keypad(stdscr, TRUE);
curs_set(FALSE); /* Hide cursor */
timeout(1000); /* One second */

/* Set locale */
setlocale(LC_ALL, "");
}

static void
@@ -1674,6 +1671,9 @@ main(int argc, char *argv[])
exit(1);
}

/* Set locale */
setlocale(LC_ALL, "");

initcurses();
browse(ipath, ifilter);
exitcurses();


Loading…
取消
儲存