Use refresh() to reflect print

This commit is contained in:
Arun Prakash Jana 2017-06-23 17:52:42 +05:30
parent 156c08ccc4
commit 65b818b0eb
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 5 deletions

7
nnn.c
View File

@ -608,8 +608,7 @@ entrycmp(const void *va, const void *vb)
static void
printmsg(char *msg)
{
move(LINES - 1, 0);
printw("%s\n", msg);
mvprintw(LINES - 1, 0, "%s\n", msg);
}
/* Display warning as a message */
@ -1625,10 +1624,8 @@ populate(char *path, char *oldpath, char *fltr)
return -1;
if (cfg.blkorder) {
timeout(0);
printmsg("Calculating...");
getch();
timeout(1000);
refresh();
}
ndents = dentfill(path, &dents, visible, &re);