X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=sideband.c;h=6d7f943e4384fa90001fbb73cc5b63e2c0cfa639;hb=26393822f88200304675283ac5b10e1e1f1b876b;hp=1e4d684d6c5dcdeee94f6eb64cfa6e2f17d44674;hpb=e94577039564ace7b7fb8186d170ea7350f55e4c;p=git-core%2Fgit.git diff --git a/sideband.c b/sideband.c index 1e4d684d6..6d7f943e4 100644 --- a/sideband.c +++ b/sideband.c @@ -20,13 +20,12 @@ int recv_sideband(const char *me, int in_stream, int out) { - const char *term, *suffix; + const char *suffix; char buf[LARGE_PACKET_MAX + 1]; struct strbuf outbuf = STRBUF_INIT; int retval = 0; - term = getenv("TERM"); - if (isatty(2) && term && strcmp(term, "dumb")) + if (isatty(2) && !is_terminal_dumb()) suffix = ANSI_SUFFIX; else suffix = DUMB_SUFFIX;