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
0a7c0481
Commit
0a7c0481
authored
Dec 19, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Don't print control characters for Unix tty.
They will be reinterpreted by Unix tty, leading to wrong display. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
26699b36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
conhost.c
programs/conhost/conhost.c
+6
-2
No files found.
programs/conhost/conhost.c
View file @
0a7c0481
...
...
@@ -358,6 +358,8 @@ static void update_output( struct screen_buffer *screen_buffer, RECT *rect )
int
x
,
y
,
size
,
trailing_spaces
;
char_info_t
*
ch
;
char
buf
[
8
];
WCHAR
wch
;
const
unsigned
int
mask
=
(
1u
<<
'\0'
)
|
(
1u
<<
'\b'
)
|
(
1u
<<
'\t'
)
|
(
1u
<<
'\n'
)
|
(
1u
<<
'\a'
)
|
(
1u
<<
'\r'
);
if
(
!
is_active
(
screen_buffer
)
||
rect
->
top
>
rect
->
bottom
||
rect
->
right
<
rect
->
left
)
return
;
...
...
@@ -393,9 +395,11 @@ static void update_output( struct screen_buffer *screen_buffer, RECT *rect )
tty_write
(
screen_buffer
->
console
,
"
\x1b
[K"
,
3
);
break
;
}
wch
=
ch
->
ch
;
if
(
screen_buffer
->
console
->
is_unix
&&
wch
<
L' '
&&
mask
&
(
1u
<<
wch
))
wch
=
L'?'
;
size
=
WideCharToMultiByte
(
get_tty_cp
(
screen_buffer
->
console
),
0
,
&
ch
->
ch
,
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
&
w
ch
,
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
tty_write
(
screen_buffer
->
console
,
buf
,
size
);
screen_buffer
->
console
->
tty_cursor_x
++
;
}
...
...
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