* removed CtrlC for go32v2 and added checks for windows calls

git-svn-id: trunk@6121 -
This commit is contained in:
pierre 2007-01-22 04:13:54 +00:00
parent 07327f9301
commit b6fc04080e

View File

@ -224,10 +224,27 @@ begin
exit;
{$ifdef Windows}
if GetConsoleMode(GetStdHandle(cardinal(Std_Input_Handle)), @Mode) then
SetConsoleMode(GetStdHandle(cardinal(Std_Input_Handle)), (Mode or ENABLE_MOUSE_INPUT) and not ENABLE_PROCESSED_INPUT);
begin
{$ifdef DEBUG}
Writeln(stderr,'Starting value of ConsoleMode is $',hexstr(Mode,8));
{$endif DEBUG}
SetConsoleMode(GetStdHandle(cardinal(Std_Input_Handle)),
(Mode or ENABLE_MOUSE_INPUT) and not ENABLE_PROCESSED_INPUT);
{$ifdef DEBUG}
end
else
begin
Writeln(stderr,'Call to GetConsoleMode failed, GetLastError=',
GetLastError);
{$endif DEBUG}
end;
{$endif Windows}
{$ifdef go32v2}
djgpp_set_ctrl_c(false);
{
I think that it was an error to put that here PM
djgpp_set_ctrl_c(false);
at least since that this is now handled in fpusrscr.pas unit
}
{$endif go32v2}
{$ifdef HasSignal}
{$ifndef TP}