Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
09c9fedf
Commit
09c9fedf
authored
Dec 13, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a (n)curses backend to the wineconsole.
parent
5ac2a538
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
Makefile.in
programs/wineconsole/Makefile.in
+4
-2
curses.c
programs/wineconsole/curses.c
+0
-0
registry.c
programs/wineconsole/registry.c
+1
-1
wineconsole.c
programs/wineconsole/wineconsole.c
+8
-10
No files found.
programs/wineconsole/Makefile.in
View file @
09c9fedf
...
...
@@ -4,11 +4,13 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
wineconsole.exe
EXTRALIBS
=
@CURSESLIBS@
APPMODE
=
gui
IMPORTS
=
gdi32 user32
advapi32 kernel32 ntdll
DELAYIMPORTS
=
comctl32
IMPORTS
=
advapi32 kernel32 ntdll
DELAYIMPORTS
=
comctl32
user32 gdi32
C_SRCS
=
\
curses.c
\
dialog.c
\
registry.c
\
user.c
\
...
...
programs/wineconsole/curses.c
0 → 100644
View file @
09c9fedf
This diff is collapsed.
Click to expand it.
programs/wineconsole/registry.c
View file @
09c9fedf
...
...
@@ -160,7 +160,7 @@ void WINECON_RegLoad(const WCHAR* appname, struct config_data* cfg)
cfg
->
cursor_size
=
25
;
cfg
->
cursor_visible
=
1
;
cfg
->
exit_on_die
=
1
;
cfg
->
face_name
[
0
]
=
0
;
memset
(
cfg
->
face_name
,
0
,
sizeof
(
cfg
->
face_name
))
;
cfg
->
cell_height
=
12
;
cfg
->
cell_width
=
8
;
cfg
->
font_weight
=
0
;
...
...
programs/wineconsole/wineconsole.c
View file @
09c9fedf
...
...
@@ -23,8 +23,8 @@
#include <stdio.h>
#include "wine/server.h"
#include "wine/unicode.h"
#include "winecon_private.h"
#include "winnls.h"
#include "wine/debug.h"
...
...
@@ -428,11 +428,11 @@ static void WINECON_Delete(struct inner_data* data)
{
if
(
!
data
)
return
;
if
(
data
->
fnDeleteBackend
)
data
->
fnDeleteBackend
(
data
);
if
(
data
->
hConIn
)
CloseHandle
(
data
->
hConIn
);
if
(
data
->
hConOut
)
CloseHandle
(
data
->
hConOut
);
if
(
data
->
hSynchro
)
CloseHandle
(
data
->
hSynchro
);
if
(
data
->
cells
)
HeapFree
(
GetProcessHeap
(),
0
,
data
->
cells
);
if
(
data
->
fnDeleteBackend
)
data
->
fnDeleteBackend
(
data
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
}
...
...
@@ -499,7 +499,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
{
req
->
handle
=
(
obj_handle_t
)
data
->
hConIn
;
req
->
mask
=
SET_CONSOLE_INPUT_INFO_TITLE
;
wine_server_add_data
(
req
,
appname
,
strlenW
(
appname
)
*
sizeof
(
WCHAR
)
);
wine_server_add_data
(
req
,
appname
,
l
strlenW
(
appname
)
*
sizeof
(
WCHAR
)
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
...
...
@@ -580,7 +580,7 @@ static BOOL WINECON_Spawn(struct inner_data* data, LPWSTR cmdLine)
*
*
*/
static
BOOL
WINECON_HasEvent
(
LPCSTR
ptr
,
unsigned
*
evt
)
static
BOOL
WINECON_HasEvent
(
LPCSTR
ptr
,
unsigned
*
evt
)
{
while
(
*
ptr
==
' '
||
*
ptr
==
'\t'
)
ptr
++
;
if
(
strncmp
(
ptr
,
"--use-event="
,
12
))
return
FALSE
;
...
...
@@ -599,15 +599,12 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
{
struct
inner_data
*
data
;
int
ret
=
1
;
unsigned
evt
;
BOOL
(
*
backend
)(
struct
inner_data
*
);
backend
=
WCUSER_InitBackend
;
unsigned
evt
;
/* case of wineconsole <evt>, signal process that created us that we're up and running */
if
(
WINECON_HasEvent
(
lpCmdLine
,
&
evt
))
{
if
(
!
(
data
=
WINECON_Init
(
hInst
,
0
,
NULL
,
b
ackend
)))
return
0
;
if
(
!
(
data
=
WINECON_Init
(
hInst
,
0
,
NULL
,
WCUSER_InitB
ackend
)))
return
0
;
ret
=
SetEvent
((
HANDLE
)
evt
);
if
(
!
ret
)
{
...
...
@@ -628,6 +625,7 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
* the correct way would be to check the existence of the left part of ptr
* (to be a file)
*/
/* FIXME: could also add an option to choose another backend if needed */
while
(
*
wcmdLine
&&
*
wcmdLine
++
!=
' '
);
/* FIXME: see above */
...
...
@@ -635,7 +633,7 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
while
(
*
src
&&
*
src
!=
' '
)
*
dst
++
=
*
src
++
;
*
dst
=
0
;
if
(
!
(
data
=
WINECON_Init
(
hInst
,
GetCurrentProcessId
(),
buffer
,
b
ackend
)))
return
0
;
if
(
!
(
data
=
WINECON_Init
(
hInst
,
GetCurrentProcessId
(),
buffer
,
WCCURSE_InitB
ackend
)))
return
0
;
ret
=
WINECON_Spawn
(
data
,
wcmdLine
);
if
(
!
ret
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment