9 Example of Description Syntax

Contents of this section

Menu Top
  f.menu        "System"        [ F= ] system
  f.menu        "Other Hosts" [ H=other-hosts I=term.xpm ] hosts
  f.menu        "Apps"          [ F=rtc.html ] apps
  f.clock       "GMT %I:%M %p"  
  f.mail-box    "${USER}: %2d" [ T=1 ] /usr/spool/mail/$USER
  f.mail-box    "Rtc: %2d" /users/offer/Mail/rtc
  f.disk-space  "%.4gMb in ${HOME}" $HOME green=:40 yellow=40:10 orange=10:5 red=5:
  f.disk-space  "%f Mb in /" / green=:5 yellow=5:3 orange=3:1 red3=1:
  f.panel       "FTP .." [ I=../include/ftp.xpm ] file-getter
  f.help-menu   "Help" /
EndMenu

Panel file-getter
  f.command     echo "ftp\n@EMAIL\nbin\nget @GETFILE @SAVEFILE\n"  | ftp @HOST

  f.text        "Get filename" =GETFILE
  f.text        "Save Flename" =SAVEFILE
  f.text        "Password" [D=vanye@robots.ox.ac.uk ] =EMAIL

  f.list        "Site" [D=sunsite.unc.edu ] =HOST {sunsite.unc.edu} {src.doc.ic.ac.uk} {ftp.sgi.com} 

EndPanel

Menu system
  f.label       "System"
  f.separator 
  f.button      "Lock Screen..." [ I=xlock.xpm ] xlock
  f.button      "Print..."      print
  f.separator   ""
  f.exit        "Quit"  
EndMenu

Menu hosts
  f.button      "arthur" /usr/local/bin/rcmd arthur-the-toaster
EndMenu

Menu apps
  f.button      "Word Processing"       [ T=10 N=1 ] wordp
  f.button      "Spreadsheet"           [ N=1 ] xspread
EndMenu

#name to help lookup

HelpText other-hosts

This lists a number of other machines 
that you may log into.

EndHelp

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter