Add the ability to select the windowtype on the command line on Unix using
a new -wwindowtype option. I had thought the proposed patch could core
dump, but the default windowtype selection occurs earlier and ensures
that raw_print will always work. So, the only problem with the proposed
patch was it didn't move the linux and sco special-case code until after
the selection was made. That special-case code really should be moved to
to wintty.c, IMO since it doesn't affect other windowtypes.
Platform- and/or Interface-Specific Fixes
-----------------------------------------
+unix: new -wwindowtype option
win32gui: better handling of "more" prompt for messages that would have scrolled
off the window
win32gui: set correct checkmark on "Lock Windows" menu item on startup
check_linux_console();
#endif
initoptions();
- init_nhwindows(&argc,argv);
exact_username = whoami();
-#ifdef _M_UNIX
- init_sco_cons();
-#endif
-#ifdef __linux__
- init_linux_cons();
-#endif
/*
* It seems you really want to play.
#endif
process_options(argc, argv); /* command line options */
+ init_nhwindows(&argc, argv); /* now we can set up window system */
+#ifdef _M_UNIX
+ init_sco_cons();
+#endif
+#ifdef __linux__
+ init_linux_cons();
+#endif
#ifdef DEF_PAGER
if(!(catmore = nh_getenv("HACKPAGER")) && !(catmore = nh_getenv("PAGER")))
{
int i;
-
/*
* Process options.
*/
flags.initrace = i;
}
break;
+ case 'w': /* windowtype */
+ choose_windows(&argv[0][2]);
+ break;
case '@':
flags.randomall = 1;
break;