Clear info line completely

This commit is contained in:
Arun Prakash Jana 2020-01-12 19:40:33 +05:30
parent 61e03e0961
commit 1eb2ab2478
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -652,10 +652,17 @@ static char *xitoa(uint val)
return &ascbuf[++i]; return &ascbuf[++i];
} }
static void clearinfoln(void)
{
move(xlines - 2, 0);
clrtoeol();
}
#ifdef KEY_RESIZE #ifdef KEY_RESIZE
/* Clear the old prompt */ /* Clear the old prompt */
static void clearoldprompt(void) static void clearoldprompt(void)
{ {
clearinfoln();
tolastln(); tolastln();
clrtoeol(); clrtoeol();
} }
@ -694,12 +701,6 @@ static void printprompt(const char *str)
addstr(str); addstr(str);
} }
static void clearinfoln(void)
{
move(xlines - 2, 0);
addstr("");
}
static void printinfoln(const char *str) static void printinfoln(const char *str)
{ {
clearinfoln(); clearinfoln();