2 # shell wrapper to avoid typing Menu escape sequences
5 usage: `basename $0` cmd
6 where the most common commands are
8 [read:file] [read:file;name]
13 +/menu/path/{item}{rtext} action
21 <b>Begin<r>Right<l>Left<u>Up<d>Down<e>End
24 [rm] [rm:] [rm*] [rm:*] [rm:name]
29 NB: commands may need to be quoted to avoid shell expansion
34 # some systems/shells don't like `echo -n'
41 +* | -* | '<'* | '['*) # send raw commands
45 *) # read in menu files
46 if test $1 = "default";
48 $Echo "
\e]10;[read:$0]
\a"
50 $Echo "
\e]10;[read:$1]
\a"
52 if test "$COLORTERM" != "rxvt-xpm"; # remove pixmap stuff
54 $Echo "
\e]10;[menu][:-/Terminal/Pixmap:][show]
\a"
60 exit # stop shell here!
61 #-------------------------------------------------------------------------
62 # since everything before a [menu] tag is ignored, we can put a default
64 #-------------------------------------------------------------------------
68 {Edit} ${EDITOR:-vi}\r
70 {Dir} ls -la|${PAGER:-more}\r
71 {Dir-Time} ls -lat|${PAGER:-more}\r
77 {check mail} checkmail\r
83 #--------------------------------------------------------------------- eof