home *** CD-ROM | disk | FTP | other *** search
- Sincerely, | Mail: LtCol James A. Lupo
- | AFOSR/NP, Bldg 410
- Jim Lupo | Bolling AFB, DC 20332-6448
- | Phone: (202) 767-4908
- | Internet: lupo@hqafsc-vax.af.mil
- | (26.2.0.67)
-
- { YES-NO }
-
- GNU Emacs promts with (y or n) or (yes or no). Used '[]' instead
- of '()'. ( How do you print a '(' ?? )
-
- Name:Fy-or-n
- #(Fy-or-n,PROMPT,FUNCT) will wait for a key and execute FUNCT using #(Fr) if
- that key is 'y' or 'n'. Doesn't execute FUNCT if C-g (cancel) is pressed.
- It keeps trying until a recognized key is hit.
- [*]#(an,arg1 ((y/n)) )
- #(Fcase,#(g)#(an),
- (y,(#(Fr,(arg2),y))),
- (n,(#(Fr,(arg2),n))),
- (C-g,()),
- (
- #(Fflush-input-buffer)
- #(SELF,(arg1),(arg2))
- )
- )[*]
-
- Name:Fyes-or-no
- #(Fyes-or-no,PROMPT,YES,NO) will read a line and execute YES if
- that line is 'yes'. It will execute NO if the line is 'no'.
- It keeps trying until a recognized word is entered.
- [*]#(ds,value)
- #(Freadline,(arg1 ((yes/no)) ),(
- #(Fcase,##(value),
- (yes,(arg2)),
- (no,(arg3)),
- (
- #(an,Please enter 'yes' or 'no'.)
- #(ds,temp,##(it,200))
- #(==,##(temp),Timeout,,(#(Fkbd-in,##(temp))))
- #(SELF,(arg1),(arg2),(arg3))
- )
- )
- ))[*]
-