X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=interactive.c;h=91ab1559629725f4b9ae25a3ec167231937bc27d;hp=c34a0f6eb3c5ff3fd6fcb0e85546a180d21fd880;hb=6c6065477926396a7e70f000a1cbe222ecd65be4;hpb=dda88dcb390a44e1f1f68f6248ed513c75dce4bf diff --git a/interactive.c b/interactive.c index c34a0f6e..91ab1559 100644 --- a/interactive.c +++ b/interactive.c @@ -206,26 +206,7 @@ void i9e_attach_to_stdout(struct btr_node *producer) static void wipe_bottom_line(void) { - char x[] = " "; - int n = i9ep->num_columns; - - /* - * For reasons beyond my understanding, writing more than 68 characters - * here causes MacOS to mess up the terminal. Writing a line of spaces - * in smaller chunks works fine though. Weird. - */ - fprintf(i9ep->stderr_stream, "\r"); - while (n > 0) { - if (n >= sizeof(x)) { - fprintf(i9ep->stderr_stream, "%s", x); - n -= sizeof(x); - continue; - } - x[n] = '\0'; - fprintf(i9ep->stderr_stream, "%s", x); - break; - } - fprintf(i9ep->stderr_stream, "\r"); + fprintf(i9ep->stderr_stream, "\r%s\r", i9ep->empty_line); } #ifndef RL_FREE_KEYMAP_DECLARED