home *** CD-ROM | disk | FTP | other *** search
-
- procedure clear_status;
- begin
- gotoxy(1,25);
- write(ceol);
- end;
-
- procedure set_status( l1,l2,l3,l4,l5,l6,l7 : string10);
- begin
- gotoxy(1,25);
-
- if l1 <> '' then write(HI,l1,LO) else write(' '); write(' ');
- if l2 <> '' then write(HI,l2,LO) else write(' '); write(' ');
- if l3 <> '' then write(HI,l3,LO) else write(' '); write(' ');
- if l4 <> '' then write(HI,l4,LO) else write(' '); write(' ');
- if l5 <> '' then write(HI,l5,LO) else write(' '); write(' ');
- if l6 <> '' then write(HI,l6,LO) else write(' '); write(' ');
- if l7 <> '' then write(HI,l7,LO) else write(' '); write(' ');
- end;
-
-
-
- procedure w_erase;
- { frame and clear window }
- var x,y : integer;
- begin
- if w_table.x1 <> -1 then
- with w_table do begin
- for y := y1 + 1 to y2 - 1 do begin
- gotoxy(x1,y);
- write(#$96,'':x2-x1-2,#$96);
- end;
- gotoxy(x1,y1); write(#$98);
- for x := 3 to x2-x1 do write(#$95); write(#$99);
- gotoxy(x1,y2); write(#$9A);
- for x := 3 to x2-x1 do write(#$95); write(#$9B);
- gotoxy(x1+1,y1+1);
- currx := x1+1; curry := y1+1;
- end;
- end;
-
- procedure w_delete;
- begin
- end;
-
- procedure w_make (nx1,nx2,ny1,ny2 : integer); { boundrys }
- { make the sub-window:
- save current screen in 'overwrote'
- set defaults in w_table
- save old cursor position
- call w_erase (above)
-
- }
- var x, y : integer;
- begin
- if w_table.x1 <> -1 then w_delete;
- with w_table do begin
- x1 := nx1;
- x2 := nx2;
- y1 := ny1;
- y2 := ny2;
- w_erase;
- end;
- end;
-
- procedure w_writeln;
- begin
- if w_table.x1 <> -1 then
- with w_table do begin
- currx := x1 + 1;
- if curry >= y2-1 then curry := y1+1
- else curry := curry + 1;
- end;
- end;
-
- procedure w_write_c(ch : char);
- begin
- if w_table.x1 <> -1 then
- with w_table do begin
- gotoxy(currx,curry);
- write(ch);
- if currx >= x2-1 then begin
- currx := x1;
- if curry >= y2-1 then
- curry := y1+1
- else curry := curry + 1;
- end
- else currx := currx + 1;
- end;
- end;
-
- procedure w_write_s(s : maxstr);
- var x : integer;
- begin
- with w_table do begin
- for x := 1 to length(s) do w_write_c(s[x]);
- end;
- end;
-
- procedure w_gotoxy (x,y : integer);
- begin
- if w_table.x1 <> -1 then
- with w_table do begin
- currx := x1 + x;
- curry := y1 + y;
- gotoxy(currx,curry);
- end;
- end;