X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;fp=zoom%2Fzoomsh.c;h=e49487b7f6c6334876182e3a2b6f7d903007a130;hp=2416cfdd98726490cd83e63b86be9c7035ef3432;hb=bfcb19b17256263c4fca826add7724ad7c847943;hpb=0a479be82be90639f4e37c4ead12baca543e88bf diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 2416cfd..e49487b 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -920,7 +920,10 @@ static int shell(struct zoom_sh *sh, int exit_on_error) #endif if (!line_in) /* no line buffer via readline or not enabled at all */ { - printf("ZOOM>"); fflush(stdout); + if (isatty(0)) + { + printf("ZOOM>"); fflush(stdout); + } if (!fgets(buf, sizeof(buf)-1, stdin)) { res = -1;