소스 검색

Add suport for "standard" NO_COLOR env variable (#508)

See https://no-color.org
master
lvgx GitHub 5 년 전
부모
커밋
f14fb9c0f9
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -0
      nnn.1
  2. +1
    -1
      src/nnn.c

+ 2
- 0
nnn.1 파일 보기

@@ -410,6 +410,8 @@ separated by \fI;\fR:
.Pp
\fBnnn:\fR this is a special variable set to the hovered entry before executing
a command from the command prompt or spawning a shell.
.Pp
\fBNO_COLOR:\fR if defined, disable ANSI color output.
.Sh KNOWN ISSUES
.Nm
may not handle keypresses correctly when used with tmux (see issue #104 for


+ 1
- 1
src/nnn.c 파일 보기

@@ -1524,7 +1524,7 @@ static bool initcurses(void *oldmask)
#endif
curs_set(FALSE); /* Hide cursor */

if (!(g_states & STATE_NOCOLOR)) {
if (!(g_states & STATE_NOCOLOR || getenv("NO_COLOR"))) {
start_color();
use_default_colors();



||||||
x
 
000:0
불러오는 중...
취소
저장