display: use a somewhat faster method to clear a row
On an 80-column terminal, using a single printw() instead of a loop of addch() reduces the time taken with 13 percent.master
parent
c06d5452f5
commit
e6c629951f
|
@ -1794,10 +1794,7 @@ const keystruct *get_shortcut(int *kbinput)
|
|||
* current attributes. */
|
||||
void blank_row(WINDOW *win, int y, int x, int n)
|
||||
{
|
||||
wmove(win, y, x);
|
||||
|
||||
for (; n > 0; n--)
|
||||
waddch(win, ' ');
|
||||
mvwprintw(win, y, x, "%*s", n, " ");
|
||||
}
|
||||
|
||||
/* Blank the first line of the top portion of the window. */
|
||||
|
|
Loading…
Reference in New Issue