Skip to content
Snippets Groups Projects
Commit 3fbd8058 authored by rswindell's avatar rswindell
Browse files

Refactor the pop() method to erase the last pop-message without leaving the

cursor in a weird place (e.g. in column 79).
parent c669a158
No related branches found
No related tags found
No related merge requests found
......@@ -361,10 +361,12 @@ void umsg(char *str)
/****************************************************************************/
void upop(char *str)
{
static size_t len;
if(str==NULL)
printf("\n");
printf("\r%*s\r", len, "");
else
printf("\r%-79s",str);
len = printf("\r%s\r", str) - 2;
}
/****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment