diff -ur angband-283/src/main-xaw.c angband-283-fixed/src/main-xaw.c --- angband-283/src/main-xaw.c Fri Oct 9 03:40:42 1998 +++ angband-283-fixed/src/main-xaw.c Fri Oct 9 03:39:29 1998 @@ -1717,6 +1717,12 @@ Widget topLevel; Display *dpy; + cptr dpy_name = ""; + + int num_term = MAX_TERM_DATA; + + char buf[80]; + #ifdef USE_GRAPHICS char filename[1024]; @@ -1725,6 +1731,33 @@ #endif /* USE_GRAPHICS */ + /* Parse args */ + for (i = 1; i < argc; i++) + { + if (prefix(argv[i], "-d")) + { + dpy_name = &argv[i][2]; + continue; + } + + if (prefix(argv[i], "-n")) + { + num_term = atoi(&argv[i][2]); + if (num_term < 1) + { + num_term = 1; + } + if (num_term > MAX_TERM_DATA) + { + num_term = MAX_TERM_DATA; + } + continue; + } + + plog_fmt("Ignoring option: %s", argv[i]); + } + + /* Attempt to open the local display */ dpy = XOpenDisplay(""); @@ -1780,7 +1813,7 @@ /* Initialize the windows */ - for (i=0; i