From ff5fbbd7c78cdb7d06ce9950180e3b4b437ccb09 Mon Sep 17 00:00:00 2001 From: Brian Barto Date: Wed, 8 Mar 2017 16:19:47 -0500 Subject: [PATCH] Clear output from nmstermio_get_cursor_row() modified: src/nmseffect.c --- src/nmseffect.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nmseffect.c b/src/nmseffect.c index 988cd6a..1b802e5 100644 --- a/src/nmseffect.c +++ b/src/nmseffect.c @@ -91,7 +91,10 @@ char nmseffect_exec(char *string) { origRow = nmstermio_get_cursor_row(); // nmstermio_get_cursor_row() may display output in some terminals. So - // we need to reposition the cursor to the start of the row. + // we need to reposition the cursor to the start of the row, print + // some blank spaces, and the reposition again. + nmstermio_move_cursor(origRow, 0); + nmstermio_print_string(" "); nmstermio_move_cursor(origRow, 0); }