|
@@ -637,7 +637,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function CrtWrite(var f : textrec):integer;
|
|
|
|
|
|
+Procedure CrtWrite(var f : textrec);
|
|
var
|
|
var
|
|
i : longint;
|
|
i : longint;
|
|
begin
|
|
begin
|
|
@@ -646,11 +646,10 @@ begin
|
|
WriteChar(f.buffer[i]);
|
|
WriteChar(f.buffer[i]);
|
|
SetScreenCursor(CurrX,CurrY);
|
|
SetScreenCursor(CurrX,CurrY);
|
|
f.bufpos:=0;
|
|
f.bufpos:=0;
|
|
- CrtWrite:=0;
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function CrtRead(Var F: TextRec): Integer;
|
|
|
|
|
|
+Procedure CrtRead(Var F: TextRec);
|
|
|
|
|
|
procedure BackSpace;
|
|
procedure BackSpace;
|
|
begin
|
|
begin
|
|
@@ -736,24 +735,21 @@ Begin
|
|
until false;
|
|
until false;
|
|
f.bufpos:=0;
|
|
f.bufpos:=0;
|
|
SetScreenCursor(CurrX,CurrY);
|
|
SetScreenCursor(CurrX,CurrY);
|
|
- CrtRead:=0;
|
|
|
|
End;
|
|
End;
|
|
|
|
|
|
|
|
|
|
-Function CrtReturn(Var F: TextRec): Integer;
|
|
|
|
|
|
+Procedure CrtReturn(Var F: TextRec);
|
|
Begin
|
|
Begin
|
|
- CrtReturn:=0;
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function CrtClose(Var F: TextRec): Integer;
|
|
|
|
|
|
+Procedure CrtClose(Var F: TextRec);
|
|
Begin
|
|
Begin
|
|
F.Mode:=fmClosed;
|
|
F.Mode:=fmClosed;
|
|
- CrtClose:=0;
|
|
|
|
End;
|
|
End;
|
|
|
|
|
|
|
|
|
|
-Function CrtOpen(Var F: TextRec): Integer;
|
|
|
|
|
|
+Procedure CrtOpen(Var F: TextRec);
|
|
Begin
|
|
Begin
|
|
If F.Mode=fmOutput Then
|
|
If F.Mode=fmOutput Then
|
|
begin
|
|
begin
|
|
@@ -767,7 +763,6 @@ Begin
|
|
TextRec(F).FlushFunc:=@CrtReturn;
|
|
TextRec(F).FlushFunc:=@CrtReturn;
|
|
end;
|
|
end;
|
|
TextRec(F).CloseFunc:=@CrtClose;
|
|
TextRec(F).CloseFunc:=@CrtClose;
|
|
- CrtOpen:=0;
|
|
|
|
End;
|
|
End;
|
|
|
|
|
|
|
|
|