home *** CD-ROM | disk | FTP | other *** search
- {$A-,B-,D-,E-,F+,I-,L-,N-,O-,R-,S-,V-}
- {$M 63768, 0, 655360}
- uses
- crt, dos,
- eco_lib, eco_file
-
- ;
-
-
- const
- filesonly : boolean = true;
- nrofretkeys = 3;
- filesretkeys : array[1..nrofretkeys] of word = (_c_r, _enter, _c_p);
-
-
- var
- checkdriv : char;
- i, j : word;
- st : string;
- retkey : word;
- files : filespanelobj;
-
-
- procedure putopts;
- begin
- with files do setoptions(
- true, true, 0,
- 41, 1, 80, 24,
- 06, { panel_f, } 00, { panel_b, }
- 15, { header_f, } 00, { header_b, }
- 15, { footer_f, } 00, { footer_b, }
- true,
- 50, 5, 70, 9,
- 00, { popup_f, } 07, { popup_b, }
- 15, { tagnocsr_f, } 00, { tagnocsr_b, }
- 15, { tagcsr_f, } 07, { tagcsr_b, }
- 00, { scrollbar_f,} 07, { scrollbar_b,}
- 06, { curactbar_f,} 08 { curactbar_b }
- );
- end;
-
-
- {main}begin
- __stdio; if scn4 = nil then new(scn4); __savscn(scn4);
- with files do begin
- newfiloff := true; init; putopts; readfiles(__curdir); startsorting; draw;
- { if not really altered by child process, that is: }
- {retagfiles(readconfig, @tempfiltagar);} { pointer to array of booleans }
- repeat
- retkey := $00; putopts;
- st := walk_files_(
- @filesretkeys, nrofretkeys, filesonly, retkey
- );
- if (
- ((retkey = _enter) or (retkey = _padenter)) and
- ((filarray^[filescursor].attr and directory) > 0)
- ) then begin
- chdir(filarray^[filescursor+filoff].name);
- readfiles(__curdir); startsorting; filoff := 0; filescursor := 0;
- newfiloff := false;
- {with tree do begin tree.jump_curpath; newtreeoff := true end;}
- draw;
- end;
- until retkey = _a_q;
- end; { with }
- __resscn(scn4);
- end.
-