use napms() instead of nanosleep(), as it does the same thing (aside

from taking an argument in milliseconds instead of microseconds) and
curses includes it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1719 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-04-24 18:30:23 +00:00
parent 0a25808f34
commit dc35cb8e16
2 changed files with 5 additions and 9 deletions

View File

@ -64,6 +64,10 @@ CVS code -
generated by the NumLock glitch. (DLR)
edit_refresh()
- Remove apparently unneeded leaveok() calls. (David Benbennick)
do_credits()
- Use napms() instead of nanosleep(), as it does the same thing
(aside from taking an argument in milliseconds instead of
microseconds) and curses includes it. (DLR)
- nano.texi:
- Fix inaccuracies: Meta-L now toggles line wrapping, and Meta-<
and Meta-> aren't toggles. (DLR)

View File

@ -30,10 +30,6 @@
#include "proto.h"
#include "nano.h"
#ifdef NANO_EXTRA
#include <time.h>
#endif
static int statblank = 0; /* Number of keystrokes left after
we call statusbar(), before we
actually blank the statusbar */
@ -2658,7 +2654,6 @@ void dump_buffer_reverse(void)
void do_credits(void)
{
int i, j = 0, k, place = 0, start_x;
struct timespec scrolldelay;
const char *what;
const char *xlcredits[XLCREDIT_LEN];
@ -2722,9 +2717,6 @@ void do_credits(void)
xlcredits[6] = _("and anyone else we forgot...");
xlcredits[7] = _("Thank you for using nano!\n");
scrolldelay.tv_sec = 0;
scrolldelay.tv_nsec = 700000000;
curs_set(0);
nodelay(edit, TRUE);
blank_bottombars();
@ -2756,7 +2748,7 @@ void do_credits(void)
start_x = COLS / 2 - strlen(what) / 2 - 1;
mvwaddstr(edit, i * 2 - k, start_x, what);
}
nanosleep(&scrolldelay, NULL);
napms(700);
wrefresh(edit);
}
if (j < editwinrows / 2 - 1)