Skip to content

Commit

Permalink
[cmds] Speed up 'sl' - let her rip full speed (#1707)
Browse files Browse the repository at this point in the history
* [cmds] Speed up 'sl' - let her rip full speed
  • Loading branch information
ghaerr authored Sep 9, 2023
1 parent 44bf159 commit 6aa6483
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions elkscmd/tui/sl.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ int my_mvaddstr(int y, int x, char *str)
{
for ( ; x < 0; ++x, ++str)
if (*str == '\0') return ERR;
for ( ; *str != '\0'; ++str, ++x)
for ( ; *str != '\0'; ++str, ++x) {
if (x >= COLS) break;
if (mvaddch(y, x, *str) == ERR) return ERR;
}
return OK;
}

Expand Down Expand Up @@ -107,11 +109,10 @@ int main(int argc, char *argv[])
else {
if (add_D51(x) == ERR) break;
}
//getch();
refresh();
usleep(40000);
//usleep(40000);
}
mvcur(0, COLS - 1, LINES - 1, 0);
mvcur(0, COLS - 1, LINES - 2, 0);
endwin();

return 0;
Expand Down

0 comments on commit 6aa6483

Please sign in to comment.