(User.programs)
Item: 121 by _Guest_ at hpcvbbs.UUCP
Author: [Eric v. davis]
  Subj: Directory TREE for HP48SX
  Date: Sat Oct 06 1990 05:25 

TREE

The following program will create a graphic that is the directory 
tree of the 48.  That is, an indented list of all directories  in 
the system:

       HOME                                  [0]
         SYS                                 [1]
           ELECT                             [2]
             CIR1                            [3]
             CIR2                            [3]
           NMBR                              [2]
             BI                              [3]
             LSQ                             [3]
               THERM                         [4]
                 Y44006                      [5]
                 Y44203                      [5]
           FIN                               [2]

And so on.

When the graphic is displayed, the UP and DOWN arrows are used to 
navigate the LCD.  Preceding the UP/DOWN keys with the blue arrow 
moves  to  the top or the bottom of the list  respectively.   The 
display  may  be printed by switching to the  normal  GRAPH  mode 
(with  the orange arrow followed by the LEFT key), pressing  STO, 
and then using PR1 to print the GROB in level 1.

The  program is written in two sections.  Section  1  recursively 
builds  a list-object of directories that are tagged  to  reflect 
their system levels.  The bracketed numbers in the above  example 
represent the directories' system levels; they are not displayed.  
Section 2 of the program translates the list-object into a graph-
ic display.

I would like to acknowledge that much of the inspiration for  the 
graphic  section of this program was provided by  Kevin  Jessup's 
EDIR program.

Eric V. Davis
October 3, 1990

