Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6ee85a61
Commit
6ee85a61
authored
Jan 12, 2007
by
Anatoly Lyutin
Committed by
Alexandre Julliard
Jan 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Add support for non-latin symbols with curses.
parent
ffdea40f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
curses.c
programs/wineconsole/curses.c
+4
-2
No files found.
programs/wineconsole/curses.c
View file @
6ee85a61
...
...
@@ -365,7 +365,7 @@ static void WCCURSES_Refresh(const struct inner_data* data, int tp, int bm)
{
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
&
cell
[
x
].
Char
.
UnicodeChar
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
attr
=
((
BYTE
)
ch
<
32
||
(
BYTE
)
ch
>
127
)
?
32
:
(
BYTE
)
ch
;
attr
=
((
BYTE
)
ch
<
32
)
?
32
:
(
BYTE
)
ch
;
if
(
cell
[
x
].
Attributes
&
FOREGROUND_RED
)
attr
|=
COLOR_PAIR
(
COLOR_RED
);
if
(
cell
[
x
].
Attributes
&
FOREGROUND_BLUE
)
attr
|=
COLOR_PAIR
(
COLOR_BLUE
);
...
...
@@ -487,6 +487,7 @@ static unsigned WCCURSES_FillSimpleChar(INPUT_RECORD* ir, unsigned real_inchar)
{
unsigned
vk
;
unsigned
inchar
;
char
ch
;
unsigned
numEvent
=
0
;
DWORD
cks
=
0
;
...
...
@@ -538,8 +539,9 @@ static unsigned WCCURSES_FillSimpleChar(INPUT_RECORD* ir, unsigned real_inchar)
ir
[
numEvent
].
Event
.
KeyEvent
.
dwControlKeyState
|=
LEFT_ALT_PRESSED
;
ir
[
numEvent
].
Event
.
KeyEvent
.
wVirtualKeyCode
=
vk
;
ir
[
numEvent
].
Event
.
KeyEvent
.
wVirtualScanCode
=
mapvkey_0
[
vk
&
0x00ff
];
/* VirtualKeyCodes to ScanCode */
ir
[
numEvent
].
Event
.
KeyEvent
.
uChar
.
UnicodeChar
=
(
unsigned
char
)
inchar
;
ch
=
inchar
;
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
&
ch
,
1
,
&
ir
[
numEvent
].
Event
.
KeyEvent
.
uChar
.
UnicodeChar
,
1
);
ir
[
numEvent
+
1
]
=
ir
[
numEvent
];
ir
[
numEvent
+
1
].
Event
.
KeyEvent
.
bKeyDown
=
0
;
...
...
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