File:
[Coherent Logic Development] /
freem /
contrib /
%ug.m
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs
Sun Jan 19 02:04:04 2025 UTC (2 months, 2 weeks ago) by
snw
Branches:
MAIN,
CoherentLogicDevelopment
CVS tags:
v0-63-1-rc1,
v0-63-0-rc1,
v0-63-0,
v0-62-3,
v0-62-2,
v0-62-1,
v0-62-0,
start,
HEAD
FreeM
%ug ; FreeM Global Utility menu - version 0.5.0.1
; Jon Diamond - 1999-03-31
;
; This is one approach, probably not the best one, but it works
; for now and is easily maintainable - copes with the named routines not existing!
;
n a,z,error
s a=$$init^%uxxxx
;
%disp s error=$$writen^%uxxxx($t(+1)_" "_$$^%uxdat)
s error=$$writep^%uxxxx("Option")
;
f z=1:1 s a=$t(%menu+z) q:a=" q" i $t(@$p(a,";",3))'="" s error=$$writep^%uxxxx(z_"~"_$p(a,";",2))
%read s a="",error=$$readn^%uxxxx("Choose option ",.a) i error<0 q
i a="" q
i a?1.2n s a=$p($t(%menu+a),";",3) i a?1"^".e,$t(@a)'="" d @a g %disp
s error=$$rerror^%uxxxx("??")
g %read
;
%menu ;Global Compare;^%ugcom
;Global Copy;^%ugcop
;Global Directory;^%ugdir
;Global Delete;^%ugdel
;Global Edit;^%ugedi
;Global Export;^%ugexp
;Global Import;^%ugimp
;Global Lister;^%uglis
;Alternative Global Lister;^%uglis2
;Global Search/Replace;^%ugsea
q
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>