Compare commits
No commits in common. "428fc954819ff8866dd00abdb37f7153095d5441" and "df46223d88788d742e04e446e32f532ba60b81a0" have entirely different histories.
428fc95481
...
df46223d88
2 changed files with 2 additions and 14 deletions
|
|
@ -135,11 +135,7 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure getScreenSize;
|
procedure getScreenSize;
|
||||||
var c:char;
|
|
||||||
begin
|
begin
|
||||||
(* empty keyboard buffer *)
|
|
||||||
while conavail do read(con, c);
|
|
||||||
|
|
||||||
GetTermSize(screenW, screenH);
|
GetTermSize(screenW, screenH);
|
||||||
pageSize := screenH - vMargins;
|
pageSize := screenH - vMargins;
|
||||||
(* set scrolling region - DECSTBM *)
|
(* set scrolling region - DECSTBM *)
|
||||||
|
|
@ -2467,8 +2463,6 @@ begin
|
||||||
close(infile);
|
close(infile);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
open(con, '%RAW', ModeOverwrite);
|
|
||||||
|
|
||||||
initScreen;
|
initScreen;
|
||||||
showScreen;
|
showScreen;
|
||||||
|
|
||||||
|
|
@ -2477,6 +2471,7 @@ begin
|
||||||
else
|
else
|
||||||
statusMsg('Successfully read file. Press F1 for help', false, false);
|
statusMsg('Successfully read file. Press F1 for help', false, false);
|
||||||
|
|
||||||
|
open(con, '%RAW', ModeOverwrite);
|
||||||
|
|
||||||
if errorLine > 0 then
|
if errorLine > 0 then
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,6 @@ begin
|
||||||
|
|
||||||
(* find next occupied slot *)
|
(* find next occupied slot *)
|
||||||
occSlotNo := scanDirSlots(volid, freeSlotNo + 1, occSlot, [SlotFirst]);
|
occSlotNo := scanDirSlots(volid, freeSlotNo + 1, occSlot, [SlotFirst]);
|
||||||
|
|
||||||
if occSlotNo <> 0 then
|
if occSlotNo <> 0 then
|
||||||
begin
|
begin
|
||||||
fileExtents := (occSlot.sizeBytes + extentSize - 1) div extentSize;
|
fileExtents := (occSlot.sizeBytes + extentSize - 1) div extentSize;
|
||||||
|
|
@ -380,14 +379,8 @@ begin
|
||||||
i := i + fileExtents;
|
i := i + fileExtents;
|
||||||
end
|
end
|
||||||
else (* no occupied slot found *)
|
else (* no occupied slot found *)
|
||||||
begin
|
|
||||||
done := true;
|
done := true;
|
||||||
(* mark first free slot of last free region as EndScan *)
|
(* TODO: mark first free slot of last free region as EndScan *)
|
||||||
freeslot.flags := freeslot.flags + [SlotEndScan];
|
|
||||||
putdirslot(volid, freeSlotNo, freeSlot, error);
|
|
||||||
if error <> IONoError then
|
|
||||||
writeln('Error writing dirslot ', clearSlotNo);
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else (* no free slot found *)
|
else (* no free slot found *)
|
||||||
done := true;
|
done := true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue