|
@@ -670,7 +670,7 @@ var
|
|
begin
|
|
begin
|
|
OldConsoleOutputCP:=GetConsoleOutputCP;
|
|
OldConsoleOutputCP:=GetConsoleOutputCP;
|
|
SetConsoleOutputCP(GetACP);
|
|
SetConsoleOutputCP(GetACP);
|
|
-
|
|
|
|
|
|
+
|
|
GetScreenCursor(CurrX, CurrY);
|
|
GetScreenCursor(CurrX, CurrY);
|
|
s:='';
|
|
s:='';
|
|
for i:=0 to f.bufpos-1 do
|
|
for i:=0 to f.bufpos-1 do
|
|
@@ -688,7 +688,7 @@ begin
|
|
if s<>'' then
|
|
if s<>'' then
|
|
WriteStr(s);
|
|
WriteStr(s);
|
|
SetScreenCursor(CurrX, CurrY);
|
|
SetScreenCursor(CurrX, CurrY);
|
|
-
|
|
|
|
|
|
+
|
|
SetConsoleOutputCP(OldConsoleOutputCP);
|
|
SetConsoleOutputCP(OldConsoleOutputCP);
|
|
|
|
|
|
f.bufpos:=0;
|
|
f.bufpos:=0;
|
|
@@ -710,11 +710,11 @@ Function CrtRead(Var F: TextRec): Integer;
|
|
|
|
|
|
var
|
|
var
|
|
ch : Char;
|
|
ch : Char;
|
|
- OldConsoleOutputCP : Word;
|
|
|
|
|
|
+ OldConsoleOutputCP : Word;
|
|
Begin
|
|
Begin
|
|
OldConsoleOutputCP:=GetConsoleOutputCP;
|
|
OldConsoleOutputCP:=GetConsoleOutputCP;
|
|
SetConsoleOutputCP(GetACP);
|
|
SetConsoleOutputCP(GetACP);
|
|
-
|
|
|
|
|
|
+
|
|
GetScreenCursor(CurrX,CurrY);
|
|
GetScreenCursor(CurrX,CurrY);
|
|
f.bufpos:=0;
|
|
f.bufpos:=0;
|
|
f.bufend:=0;
|
|
f.bufend:=0;
|
|
@@ -791,7 +791,7 @@ Begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
until false;
|
|
until false;
|
|
-
|
|
|
|
|
|
+
|
|
SetConsoleOutputCP(OldConsoleOutputCP);
|
|
SetConsoleOutputCP(OldConsoleOutputCP);
|
|
|
|
|
|
f.bufpos:=0;
|
|
f.bufpos:=0;
|
|
@@ -877,4 +877,3 @@ begin
|
|
Reset(Input);
|
|
Reset(Input);
|
|
TextRec(Input).Handle:= GetStdHandle(STD_INPUT_HANDLE);
|
|
TextRec(Input).Handle:= GetStdHandle(STD_INPUT_HANDLE);
|
|
end. { unit Crt }
|
|
end. { unit Crt }
|
|
-
|
|
|