time option - see README for details.
* A giant code cleanup that centralizes necessary globals, removes
unnecessary variables and #defines...
+ * Improved stripgfx feature to allow in-session graphic strip
+ toggling. Still a bit unreliable though, but works better than
+ before.
1.3.10 (2003/10/22)
* Added a mode flag to the open call for inprogress lock files.
{MALSTRING} {
yytext[yyleng - 1] = '\0'; /* remove trailing newline */
- /* yytext already contains a newline, no need for one here */
fprintf(stderr, "%s:%d:%d: unterminated string constant: %s\n", config, line, col - yyleng + 1, yytext);
return TYPE_MALSTRING;
}
clear ();
drawbanner (1, 1);
mvprintw (3, 1,
- "During playback, hit 'q' to return here, 'm' to send mail (requires login)");
+ "During playback, hit 'q' to return here, 'm' to send mail (requires login),");
mvaddstr (4, 1,
- "(Use capital letter of selection to strip DEC graphics, VERY experimental!)");
+ "'s' to toggle graphic-set stripping for DEC, IBM, and none.");
mvaddstr (5, 1, "The following games are in progress:");
/* clean old games and list good ones */
clear ();
refresh ();
endwin ();
- ttyplay_main (ttyrecname, 1, 0);
+ ttyplay_main (ttyrecname, 1);
initcurses ();
}
}
#include "stripgfx.h"
off_t seek_offset_clrscr;
-int bstripgfx;
+int stripped = NO_GRAPHICS;
struct timeval
timeval_diff (struct timeval tv1, struct timeval tv2)
int counter = 0;
fd_set readfs;
struct timeval zerotime;
- static int stripped = NO_GRAPHICS;
zerotime.tv_sec = 0;
zerotime.tv_usec = 0;
for (i = 0; i < len; i++)
{
- buf[i] = strip_gfx (buf[i]);
+ if (stripped != NO_GRAPHICS)
+ buf[i] = strip_gfx (buf[i]);
}
fwrite (buf, 1, len, stdout);
int
-ttyplay_main (char *ttyfile, int mode, int rstripgfx)
+ttyplay_main (char *ttyfile, int mode)
{
double speed = 1.0;
ReadFunc read_func = ttyread;
#include <stdio.h>
#include "ttyrec.h"
-int ttyplay_main (char *ttyfile, int mode, int rstripgfx);
+int ttyplay_main (char *ttyfile, int mode);
typedef double (*WaitFunc) (struct timeval prev,
struct timeval cur, double speed);