Unix CLI option to set windowtype
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.
This commit is contained in:
@@ -55,6 +55,7 @@ grammar fixes for applying stethoscope to corpses and statues
|
||||
|
||||
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
|
||||
|
||||
@@ -150,14 +150,7 @@ char *argv[];
|
||||
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.
|
||||
@@ -188,6 +181,13 @@ char *argv[];
|
||||
#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")))
|
||||
@@ -315,7 +315,6 @@ char *argv[];
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
/*
|
||||
* Process options.
|
||||
*/
|
||||
@@ -404,6 +403,9 @@ char *argv[];
|
||||
flags.initrace = i;
|
||||
}
|
||||
break;
|
||||
case 'w': /* windowtype */
|
||||
choose_windows(&argv[0][2]);
|
||||
break;
|
||||
case '@':
|
||||
flags.randomall = 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user