Removing console specific defines [1/4]

Eric Pouech eric.pouech at wanadoo.fr
Mon Jan 6 15:54:28 CST 2003


this serie of patches will get rid of WINE_ENABLE_LINE_INPUT_EMACS in 
include/wincon.h

4 patches are required:
#1 will remove usage of this constant in client of the API (SetConsoleMode)
#2 will move (from a server & KERNEL32 point of view) the semantics of 
the constant from the console mode to a specific field in the server
#3 will implement the manipulation of this new attribute in wineconsole
#4 will add the GUI bits the choose the requested edition mode

from a user perspective, every CUI program using line mode input could 
be configured, thru the console settings, to use either win32-line 
edition mode or emacs-like edition mode

A+

-- 
Eric Pouech
-------------- next part --------------
Name:          wd_emacs
ChangeLog:     removed emacs edition flavor (it's now a console attribute)
License:       X11
GenDate:       2003/01/06 21:45:07 UTC
ModifiedFiles: programs/winedbg/winedbg.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/programs/winedbg/winedbg.c,v
retrieving revision 1.3
diff -u -u -r1.3 winedbg.c
--- programs/winedbg/winedbg.c	12 Dec 2002 23:34:01 -0000	1.3
+++ programs/winedbg/winedbg.c	5 Jan 2003 21:28:59 -0000
@@ -960,8 +972,6 @@
 
 static void DEBUG_InitConsole(void)
 {
-    DWORD	mode;
-
     /* keep it as a cuiexe for now, so that Wine won't touch the Unix stdin,
      * stdout and stderr streams
      */
@@ -970,10 +980,6 @@
 	FreeConsole();
 	AllocConsole();
     }
-
-    /* put the line editing mode with the nice emacs features (FIXME: could be triggered by a IVAR) */
-    if (GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &mode))
-        SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), mode | WINE_ENABLE_LINE_INPUT_EMACS);
 
     /* set our control-C handler */
     SetConsoleCtrlHandler(DEBUG_CtrlCHandler, TRUE);


More information about the wine-patches mailing list