home *** CD-ROM | disk | FTP | other *** search
- uses
- eco_lib, crt
-
- ;
-
-
- var
- error,
- fore,
- back,
- rs : byte;
- ww : word;
- st : string;
-
-
-
- begin
- __setblwin(false);
- if __inparams('/?', ww) then begin
- writeln(__progname, ' Version 1.1 - (C) MCMXCIII');
- writeln('Written by Floor A.C. Naaijkens for UltiHouse Software.');
- writeln(__rep(63, '─'));
- writeln('Usage:');
- writeln(' ', __progname, ' String1`sTring2_and_more_with_underscore`stRing3');
- writeln(' Ends with errlev 0 if <ESC> or with errlev 1 if chosen string1');
- writeln(' with errlev 2 if chosen option 2 etc..');
- writeln(' Ending with errorlevel 255 when an incorrect string is presented.');
- writeln(' Ending with errorlevel 254 when this help was given.');
- writeln(__rep(63, '─'));
- writeln(__progname, ' expects exactly one parameter, thus constructed:');
- writeln(' The various parts are separated by ` quotes, and every part');
- writeln(' contains exactly 1 capital. All capitals must differ.');
- writeln(' Use underscores for spaces within one string.');
- writeln(__rep(63, '─'));
- writeln('The barmenu is commanded with:');
- writeln(' Capitals, , , <SPACE>, <ENTER> and <ESC>');
- writeln(__rep(63, '─'));
- writeln('Option:');
- writeln(' /debug gives a debug session on your commandline.');
- writeln('');
- halt(254);
- end;
- st := ' ' + __expandchr(__xlatestr(paramstr(1), '`''', ' '), ' ', ' ') + ' ';
- if __inparams('/debug', ww) then error := 255 else error := 0;
- if __barcheck(st, error) then begin
- __loc(wherex, wherey, fore, back);
- rs := __barchoice(1, length(st)+1, wherey, fore, back, 12, st, 30);
- writeln; halt(rs)
- end else begin
- writeln('Error in position: ', error);
- halt(255);
- end;
- end.
-