Gijs Vermeulen
ec810c84ab
kernel32: Implement GetCurrentConsoleFontEx.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47620
Signed-off-by: Gijs Vermeulen <gijsvrm@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 20:47:43 +01:00
Francois Gouget
da238dc1d1
kernel32: Match the Windows 10 1709+ SetConsoleFont() implementation.
...
That is return the same 'E_NOTIMPL' error code.
Remove the todo_wine-s but keep the tests in case we want to implement
the API for compatibility with old Windows versions.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-14 09:40:36 +01:00
Francois Gouget
31046449e6
kernel32: Match the Windows 10 1709+ GetConsoleFontInfo().
...
That is return the same 'E_NOTIMPL' error code.
Remove the todo_wine-s but keep the tests in case we want to implement
the API for compatibility with older Windows versions.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-08 18:19:17 +01:00
Alexandre Julliard
55e9b666a0
kernel32: Move console functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-10 23:20:41 +02:00
Jacek Caban
57212f64f8
kernel32: Add AttachConsole implementation.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41573
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43910
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 13:21:56 +02:00
Michael Stefaniuc
fe70e0e58f
kernel32: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Hugh McMaster
2bda84a410
kernel32: Implement GetConsoleScreenBufferInfoEx.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 13:40:37 +09:00
Austin English
77733651ad
kernel32: Add GetConsoleFontInfo stub.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-25 18:53:27 +09:00
Austin English
43637ce9f7
kernel32: Add GetConsoleAliasExesLengthA/W stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 00:06:40 +09:00
Hugh McMaster
408205cb04
kernel32: Add a stub for SetCurrentConsoleFontEx.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 00:36:28 +09:00
Hugh McMaster
2c5756347b
kernel32: Implement the TRUE pathway of GetCurrentConsoleFont.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 01:22:33 +09:00
Austin English
57d1171208
kernel32: Add GetConsoleScreenBufferInfoEx/SetConsoleScreenBufferInfoEx stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 00:50:48 +09:00
Hugh McMaster
66974e5502
kernel32: Remove incorrect comment from !i386 version of GetLargestConsoleWindowSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:32 +01:00
Sebastian Lackner
dfe42ca506
kernel32: Clamp maximum console window size to screen buffer size.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:31 +01:00
Hugh McMaster
c9364659aa
kernel32: Add a stub for SetConsoleFont.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:42 +01:00
Hugh McMaster
dd6477966b
kernel32: Implement GetLargestConsoleWindowSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:37 +01:00
Andrew Eikum
df718b8ab8
kernel32: Always uninitialize the terminal for the console shell process.
...
The terminal raw IO check and the console shell process check are used
separately to initialize the terminal in different ways. However, if
either check fails during uninitialization, then no uninitialization
will occur at all and modified terminfo settings will remain instead of
being restored. We should check each condition individually and
uninitialize each part as required.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:02 +09:00
Austin English
7c92862071
kernel32: Add SetConsoleKeyShortcuts stub.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 23:12:03 +09:00
Hugh McMaster
4925f75869
kernel32: Implement GetConsoleFontSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Hugh McMaster
f0ee54a776
kernel32: Implement GetNumberOfConsoleFonts.
...
We only ever have one entry in the console font table.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:24 +09:00
Hugh McMaster
a9277a9c34
kernel32: Implement the FALSE pathway of GetCurrentConsoleFont.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:34 +09:00
Erich E. Hoover
4b559f02dd
kernel32: Invalid console handles for new processes are 0, not INVALID_HANDLE_VALUE.
2015-04-23 15:06:36 +09:00
Dmitry Timoshkov
e03a3fe509
kernel32: Add a workaround for broken apps that pass negative values to ReadConsole.
2014-04-16 10:54:15 +02:00
Dmitry Timoshkov
2451d263de
kernel32: Handle memory allocation failure in ReadConsoleA.
2014-04-15 09:46:29 +02:00
André Hentschel
5a6d38c2bd
kernel32: Adapt input checking in OpenConsoleW to match win8 behaviour.
2013-12-26 13:42:55 +01:00
Frédéric Delanoy
7ab78b4e03
kernel32: Use BOOL type where appropriate.
2013-10-24 10:49:11 +02:00
Michael Stefaniuc
2a39cb377a
dlls: Replace the remaining CONSTs.
2013-09-25 11:49:20 +02:00
André Hentschel
e1c884256e
kernel32: Silence a noisy FIXME in GetConsoleKeyboardLayoutNameW.
2013-04-15 15:15:25 +02:00
Alistair Leslie-Hughes
53d7355949
kernel32: Add GetConsoleFontSize stub.
2012-08-22 12:10:25 +02:00
Alistair Leslie-Hughes
71d3d4f1ba
kernel32: Add GetCurrentConsoleFont stub.
2012-08-22 12:09:37 +02:00
Austin English
e8c283c009
kernel32: Add a stub for SetConsoleIcon.
2012-06-05 11:50:45 +02:00
Eric Pouech
945e16c281
kernel32: Enhance bare fd check by checking that the handle is a real console handle.
2012-02-20 11:38:24 +01:00
Austin English
9a2c2ed5c2
kernel32: Add a stub for AddConsoleAliasA/W.
2012-01-25 13:53:59 +01:00
Austin English
15bce22683
kernel32: Add stubs for ExpungeConsoleCommandHistoryA/W.
2012-01-23 17:05:10 +01:00
Austin English
eff816b55c
kernel32: Add stubs for GetConsoleAliasesLengthA/W.
2012-01-23 17:05:07 +01:00
Austin English
4110068dc2
kernel32: Add stubs for GetConsoleCommandHistoryLengthA/W.
2012-01-23 16:07:42 +01:00
Austin English
2bc08d7f35
kernel32: Add stubs for GetConsoleCommandHistoryLengthA/W.
2012-01-19 21:08:54 +01:00
Pierre Schweitzer
8ed701b3c6
kernel32: Fix handle leak.
2012-01-03 12:37:56 +01:00
Francois Gouget
632ac0b227
kernel32: Avoid hardcoding the Unicode string literal lengths.
2011-12-16 17:40:40 +01:00
Marcus Meissner
69b713618b
kernel32: Avoid shadowing "ret" variable.
2011-10-24 12:33:46 +02:00
Francois Gouget
66395882f8
kernel32: Fix writing to a pipe in WriteConsoleW().
2011-08-04 11:47:36 +02:00
Frédéric Delanoy
b5a33dab88
dlls: Assorted spelling fixes.
2011-08-02 20:47:51 +02:00
Eric Pouech
aee674c9b8
kernel32: Properly manage UTF-8 (and any wcs) input strings.
2011-01-25 14:46:59 +01:00
Eric Pouech
a392e9a102
kernel32: Correctly parse the input strings for advanced keys.
2011-01-19 12:55:06 +01:00
Eric Pouech
46cd299458
kernel32: Move the input character to INPUT_RECORD translation functions to term.c.
2011-01-19 12:54:49 +01:00
Eric Pouech
ef3c46a9bf
kernel32: Added support for terminfo/termcap in console code.
2011-01-19 12:54:08 +01:00
Andrew Nguyen
b158d23c88
kernel32: Improve parameter validation for ReadConsoleOutputAttribute.
2011-01-11 16:05:47 +01:00
Andrew Nguyen
66b42c86d1
kernel32: Improve parameter validation for ReadConsoleOutputCharacterA.
2011-01-11 16:05:47 +01:00
Andrew Nguyen
c905b7e705
kernel32: Improve parameter validation for ReadConsoleOutputCharacterW.
2011-01-11 16:05:47 +01:00
Andrew Nguyen
51d05e241a
kernel32: Improve parameter validation for FillConsoleOutputAttribute.
2011-01-04 11:58:34 +01:00
Andrew Nguyen
5a7c633fab
kernel32: Improve parameter validation for FillConsoleOutputCharacterW.
2011-01-04 11:58:33 +01:00
Andrew Nguyen
8ec12b5110
kernel32: Improve parameter validation for WriteConsoleOutputAttribute.
2011-01-04 11:58:33 +01:00
Andrew Nguyen
5f70cd6509
kernel32: Improve parameter validation for WriteConsoleOutputCharacterA.
2011-01-04 11:58:33 +01:00
Andrew Nguyen
2281c29b46
kernel32: Improve parameter validation for WriteConsoleOutputCharacterW.
2011-01-04 11:58:33 +01:00
Andrew Nguyen
9febdf3f58
kernel32: Improve parameter validation for WriteConsoleInputA.
2011-01-04 11:58:32 +01:00
Andrew Nguyen
0272da5afa
kernel32: Improve parameter validation for WriteConsoleInputW.
2011-01-04 11:58:13 +01:00
Andrew Nguyen
3501b0a580
kernel32: Fail with an invalid output parameter in GetNumberOfConsoleInputEvents.
2011-01-04 11:51:03 +01:00
Eric Pouech
4149643fbe
kernel32: When reading chars out of a bare console, use the Unix API (instead of the Windows one).
2010-12-13 16:23:14 +01:00
Eric Pouech
7f043168c1
kernel32: Fixed regression with echoing input characters.
2010-11-12 15:48:10 +01:00
Eric Pouech
91e3a40e41
server: Removed the no longer used bare parameter out of get_console_mode request.
2010-11-08 13:30:25 +01:00
Eric Pouech
f67b0377ab
kernel32: Use fd availability for testing whether a console handle refers to a bare console.
2010-11-08 13:30:25 +01:00
Eric Pouech
eabe3b34b2
kernel32: Only reset the console mode when it has been previously changed.
2010-09-27 12:09:33 +02:00
Peter Oberndorfer
297b054e74
kernel32: VerifyConsoleIoHandle does not set last error value.
2010-09-23 12:00:29 +02:00
Luca Bennati
9941f846e8
kernel32: Remove dead assignments.
2010-09-20 13:02:11 +02:00
Eric Pouech
a2322e3735
kernel32: Fixed a couple of cases where the console was not reset in cooked mode after a bare console has been created.
2010-09-13 14:45:18 -05:00
Eric Pouech
a63e0fac75
kernel32: Remove old bare-console code.
2010-09-01 14:01:03 +02:00
Eric Pouech
efecd9c337
kernel32: Modify editline logic so that it also work with bare consoles.
2010-09-01 14:01:03 +02:00
Eric Pouech
e4d090277b
kernel32: Properly handle bare console on input.
2010-09-01 14:01:03 +02:00
Eric Pouech
45ade6c2f5
ntdll: Allocate a console (without renderer) when starting a program from unix console.
2010-09-01 14:01:03 +02:00
Eric Pouech
6f32644aa0
server: Allow a screen buffer to be attached to a given fd (for bare consoles).
2010-09-01 14:01:02 +02:00
Andrew Nguyen
39208d4d60
kernel32: Don't set last error on success in OpenConsoleW.
2010-04-01 18:12:40 +02:00
Andrew Nguyen
b7bf2abdff
kernel32: Improve parameter validation in OpenConsoleW.
2010-04-01 18:12:40 +02:00
Alexandre Julliard
3b67ad9bd4
ntdll: Fix the NtCreateEvent prototype.
...
It takes an event type, not a manual reset flag.
2010-01-18 20:34:54 +01:00
Paul Vriens
a95e070824
kernel32: Add a stubbed GetConsoleProcessList().
2010-01-05 12:29:18 +01:00
Alexandre Julliard
8268ed9783
kernel32: Do not include 16-bit headers in 32-bit files.
2009-12-30 16:21:56 +01:00
Eric Pouech
e0319b82c9
kernel32: Handle the case where wineconsole isn't properly started.
2009-08-29 17:11:39 +02:00
Austin English
056131f67e
kernel32: GetConsoleAliasW is a stub, make sure it acts like one.
2009-06-15 13:42:28 +02:00
Michael Stefaniuc
9b2730eb88
kernel32: Remove superfluous pointer casts.
2009-03-11 13:03:31 +01:00
Andrew Nguyen
976d5cae8d
kernel32: Ensure that WriteConsoleW succeeds with an empty input buffer.
2009-01-19 13:36:25 +01:00
Alexander Nicolaysen Sørnes
93488b19dc
kernel32: Add stub for GetConsoleAliasW.
2008-12-15 13:27:03 +01:00
Alexandre Julliard
7fdadbb377
server: Add functions for conversions between server user handles and pointer-style handles.
2008-12-08 16:58:20 +01:00
Alexandre Julliard
d1b3d484f7
server: Add functions for conversions between server object handles and pointer-style handles.
2008-12-08 16:05:17 +01:00
Dmitry Timoshkov
67be353040
kernel32: Don't ignore extended keys.
2008-10-28 12:13:46 +01:00
Kirill K. Smirnov
a470c0b017
kernel32: Add stubs for [G|S]etConsoleDisplayMode.
2008-06-27 11:29:07 +02:00
Paul Vriens
dd01d39f3b
kernel32: Fix return values of GetConsoleCursorInfo.
2008-06-24 12:47:18 +02:00
Austin English
c531e2abdb
Spelling fixes.
2008-04-23 12:31:07 +02:00
Rob Shearman
7ed33ae721
kernel32: Fix handle leak in start_console_renderer_helper.
2008-02-18 12:20:38 +01:00
Rob Shearman
a82f4dd9b7
Don't use GetExceptionCode and GetExceptionInformation in exception filter functions.
...
When using native compiler exceptions, it isn't valid to use
GetExceptionCode and GetExceptionInformation anywhere other than in the
filter or handler blocks since it would be very hard for the compiler to
work out where to retrieve the exception information from on the stack.
Therefore, remove the WINE_EXCEPTION_FILTER and WINE_FINALLY_FUNC macros
which enabled GetExceptionCode, GetExceptionInformation and
AbnormalTermination to be used inside of the functions they declared and
fix up all callers to access the information directly.
2008-02-16 14:57:44 +01:00
Kirill K. Smirnov
24f78d7366
kernel32: Convert newborn wineserver handle to kernel32 console handle.
2008-01-04 13:46:13 +01:00
Kirill K. Smirnov
b7f617c916
kernel32: Invalidate local copy of console input event handle while reallocating console.
2007-12-21 14:27:10 +01:00
Kirill K. Smirnov
c9700896fe
kernel32: ReadConsoleW should wait for at least one character before returning.
2007-12-18 19:48:36 +01:00
Hans Leidekker
c6dd1f1599
kernel32: GetConsoleInputExeNameW returns TRUE even when it fails.
2007-12-10 12:27:04 +01:00
Hans Leidekker
8f3afb4120
kernel32: Implement and test {G, S}etConsoleInputExeName{A, W}.
2007-12-03 16:03:23 +01:00
EA Durbin
661755b69f
kernel32: Add stub for GetConsoleKeyboardLayoutNameW.
2007-11-13 15:10:12 +01:00
EA Durbin
592fc26b09
kernel32: Add stub implementation of GetConsoleKeyboardLayoutNameA.
2007-11-13 15:09:08 +01:00
EA Durbin
6e6a2a5856
kernel32: Add stub implementation of GetConsoleInputExeNameW.
2007-11-13 15:08:28 +01:00
EA Durbin
4a0833c2d0
kernel32: Add stub implementation of GetConsoleInputExeNameA.
2007-11-13 15:07:54 +01:00
Kirill K. Smirnov
f3e13174c7
wineconsole: Implement GetConsoleWindow.
2007-08-24 12:03:22 +02:00
Kirill K. Smirnov
5217ea7a1b
kernel32: Do not append empty lines to the console history.
2007-08-08 15:32:04 +02:00
Kirill K. Smirnov
9d74661856
server: Move console codepages to the server.
2007-05-11 12:41:29 +02:00