Files
nethack/include
PatR 11c8d5cd5e Unix: command line --windowtype:foo fix
initoptions(), including initoptions_finish(), was running to
completion with the default window system before windowtype from the
command was parsed and activated.  When the default window system
is tty without MS-DOS the map type gets set to ascii; command line
--windowtype:X11 doesn't switch it back to the X11 default of tiled.

So,
| NETHACKOPTIONS=windowtype:X11 nethack
ran nethack in tiles mode but
| nethack --windowtype:X11
ran it in text mode (assuming .nethackrc left tiles vs text with the
default setting).

I think this fix is quite iffy but it seems to work as intended....
It reclassifies '--windowtype' as an "early option" in unixmain.c,
and the options.c code ultimately processes it twice.
2022-08-28 00:09:50 -07:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2022-07-19 21:23:26 +03:00
2022-07-19 21:23:26 +03:00
2022-07-27 12:21:07 +03:00
2022-06-30 23:48:18 -04:00
2022-06-30 23:48:18 -04:00
2022-08-28 00:09:50 -07:00
2022-08-19 10:00:47 -04:00
2021-01-26 21:06:16 -05:00
2022-06-30 23:48:18 -04:00
2022-06-30 23:48:18 -04:00
2022-08-26 12:43:40 +03:00
2022-08-23 23:27:21 +03:00
2022-08-23 23:27:21 +03:00
2022-07-15 13:48:29 -07:00
2022-08-17 20:17:30 +03:00
2022-07-01 08:36:03 -04:00
2022-03-11 07:33:28 -05:00
2022-06-19 02:30:45 -07:00
2022-06-30 23:48:18 -04:00
2022-06-30 23:48:18 -04:00
2022-08-07 22:33:47 +03:00
2022-02-16 23:04:02 +02:00
2022-06-30 23:48:18 -04:00
2022-08-12 19:37:34 +03:00
2022-01-28 08:30:08 +02:00
2022-06-30 23:48:18 -04:00
2021-12-19 19:31:19 -08:00
2022-07-15 13:48:29 -07:00
2022-07-23 23:11:13 -07:00
2022-06-30 23:48:18 -04:00
2022-06-30 23:48:18 -04:00
2022-05-07 10:25:13 -04:00
2022-03-02 13:09:42 -08:00
2020-08-12 16:15:28 -07:00
2022-03-15 13:46:56 +02:00
2022-06-30 23:48:18 -04:00
2022-08-21 11:36:39 +03:00
2021-10-21 08:48:23 -04:00
2022-06-30 23:48:18 -04:00
2022-03-16 21:27:06 -04:00
2022-08-23 23:27:21 +03:00
2021-01-26 10:27:51 -05:00
2022-07-10 11:14:10 -07:00
2022-01-11 10:25:50 -08:00