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)
#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 */
void do_credits(void)
{
int i, j = 0, k, place = 0, start_x;
- struct timespec scrolldelay;
const char *what;
const char *xlcredits[XLCREDIT_LEN];
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();
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)