parse -s option

This commit is contained in:
rsc 2005-01-04 22:17:37 +00:00
parent f4b26b64bc
commit d2e350c019

View file

@ -36,6 +36,7 @@ int _inset = 1;
int curtime;
int debug;
int signalled;
int scrolling;
int num_screens;
int solidsweep = 0;
int numvirtuals = 0;
@ -66,7 +67,7 @@ char *fontlist[] = {
void
usage(void)
{
fprintf(stderr, "usage: rio [-grey] [-version] [-font fname] [-term prog] [-virtuals num] [exit|restart]\n");
fprintf(stderr, "usage: rio [-grey] [-font fname] [-s] [-term prog] [-version] [-virtuals num] [exit|restart]\n");
exit(1);
}
@ -113,6 +114,9 @@ main(int argc, char *argv[])
fprintf(stderr, "\n");
exit(0);
}
else if (strcmp(argv[i], "-s") == 0) {
scrolling = 1;
}
else if (argv[i][0] == '-')
usage();
else