From 628031051a17756e48b6726ddd477d2fa5692dc2 Mon Sep 17 00:00:00 2001 From: crunchy Date: Sat, 14 Sep 2002 07:23:59 +0000 Subject: fixed output of none interactive mode --- mpiosh/mpiosh.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mpiosh/mpiosh.c') diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index 3bcf6d4..aca7e19 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -2,7 +2,7 @@ /* * - * $Id: mpiosh.c,v 1.4 2002/09/13 19:06:30 crunchy Exp $ + * $Id: mpiosh.c,v 1.5 2002/09/14 07:23:59 crunchy Exp $ * * Author: Andreas Büsching * @@ -340,6 +340,8 @@ mpiosh_signal_handler(int signal) mpiosh_cancel = 1; } +void mpiosh_noredisplay(void) {} + int main(int argc, char *argv[]) { char * line; @@ -363,7 +365,6 @@ main(int argc, char *argv[]) { /* signal(SIGINT, SIG_IGN); */ /* init readline and history */ - rl_readline_name = "mpio"; using_history(); debug_init(); @@ -380,6 +381,7 @@ main(int argc, char *argv[]) { if (!isatty(fileno(stdin))) { interactive = 0; mpiosh.prompt = NULL; + rl_redisplay_function = mpiosh_noredisplay; } if (!mpiosh.dev && interactive) { -- cgit v1.2.3