mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 13:50:36 +02:00
Remove redundant ctrl-c enable and disable.
This commit is contained in:
parent
359d23e595
commit
e945c65255
@ -74,10 +74,7 @@ Begin
|
|||||||
IntToStr(GetLastError),0,0);
|
IntToStr(GetLastError),0,0);
|
||||||
{$endif Windows}
|
{$endif Windows}
|
||||||
{$ifdef go32v2}
|
{$ifdef go32v2}
|
||||||
if djgpp_set_ctrl_c(false) then
|
ConsoleMode:=0;
|
||||||
ConsoleMode:=1
|
|
||||||
else
|
|
||||||
ConsoleMode:=0;
|
|
||||||
{$endif go32v2}
|
{$endif go32v2}
|
||||||
{$ifdef netware}
|
{$ifdef netware}
|
||||||
ConsoleMode:=0;
|
ConsoleMode:=0;
|
||||||
@ -94,9 +91,6 @@ Begin
|
|||||||
DebugMessage('','Call to SetConsoleMode failed, GetLastError='+
|
DebugMessage('','Call to SetConsoleMode failed, GetLastError='+
|
||||||
IntToStr(GetLastError),0,0);
|
IntToStr(GetLastError),0,0);
|
||||||
{$endif Windows}
|
{$endif Windows}
|
||||||
{$ifdef go32v2}
|
|
||||||
djgpp_set_ctrl_c((ConsoleMode and 1)<>0);
|
|
||||||
{$endif go32v2}
|
|
||||||
End;
|
End;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user