Now that we display the last keystroke at the very end of the
first line it is wrong to 'clrtoeol' afterwards as that will
clear the next line.
So remove that, make sure we clear the spaces before the number
incase it becomes shorter, and tidy up the display for 'ESC...' too.
Reported-by: Manpreet Singh <junkblocker@yahoo.com>
Signed-off-by: NeilBrown <neilb@suse.de>
}
}
{char bb[20];
- sprintf(bb, "%d", c);
+ sprintf(bb, " %d", c);
+ attrset(0);
mvaddstr(0, cols-strlen(bb), bb);
- clrtoeol();
}
move(row, 9);
c = getch();
}
break;
case 27: /* escape */
- mvaddstr(0, 70, "ESC..."); clrtoeol();
+ attrset(0);
+ mvaddstr(0, cols-10, "ESC..."); clrtoeol();
c = getch();
switch (c) {
}
+ move(0, cols-10); clrtoeol();
break;
case 'q':
return;