parent 97edec62b5
author Ray Chason <ray.chason@protonmail.com> 1684372172 -0400 committer nhmall <nhmall@nethack.org> 1685414340 -0400 Add configuration to support Curses on WinGUI and enable support for Unicode on Curses. Allow NetHackW to select the Curses interface Reorder drawing of extended command prompt Curses on WinGUI needs this change. This may be a bug in PDCursesMod, but it seems to be harmless to the other ports. Avoid calling Curses after the windows are closed Provide erase_char and kill_char for WinGUI Curses Set Lua version to 5.4.6
This commit is contained in:
@@ -86,7 +86,7 @@ int windows_startup_state = 0; /* we flag whether to continue with this */
|
||||
extern int redirect_stdout; /* from sys/share/pcsys.c */
|
||||
extern int GUILaunched;
|
||||
HANDLE hStdOut;
|
||||
char default_window_sys[] =
|
||||
char default_window_sys[7] =
|
||||
#if defined(MSWIN_GRAPHICS)
|
||||
"mswin";
|
||||
#elif defined(TTY_GRAPHICS)
|
||||
@@ -560,9 +560,11 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
||||
/*
|
||||
* It seems you really want to play.
|
||||
*/
|
||||
#ifndef CURSES_GRAPHICS
|
||||
if (argc >= 1 && !strcmpi(default_window_sys, "mswin")
|
||||
&& (strstri(argv[0], "nethackw.exe") || GUILaunched))
|
||||
iflags.windowtype_locked = TRUE;
|
||||
#endif
|
||||
windowtype = default_window_sys;
|
||||
|
||||
#ifdef DLB
|
||||
@@ -582,7 +584,7 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
||||
#if defined(TTY_GRAPHICS)
|
||||
Strcpy(default_window_sys, "tty");
|
||||
#else
|
||||
#if defined(CURSES_GRAPHICS)
|
||||
#if defined(CURSES_GRAPHICS) && !defined(MSWIN_GRAPHICS)
|
||||
Strcpy(default_window_sys, "curses");
|
||||
#endif /* CURSES */
|
||||
#endif /* TTY */
|
||||
|
||||
Reference in New Issue
Block a user