🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34931

Re: Wish list for slrn.

#34931
From: asf... Lloyd Zusman
Date: Mon, 07 Jul 1997 00:00
40 lines
2188 bytes

On 7 Jul 1997 10:57:21 GMT, Olly Betts <ol...@muscat.co.uk> wrote:
> In article <slrn5s13q...@ljz.asfast.net>, Lloyd Zusman wrote:
> >And I have a question: could you show how to use 'select_list_box' in
> >a macro?  I couldn't find any examples of this in the sample macros
> >that come with the 0.9.4.2 release.
> 
> Look in slrn/doc/README.macros (in 0.9.4.1 at least):
> 
> : get_select_box_response
> :   Prototype: Integer get_select_box_response (title, item_1, ..., n_items);
> :   
> :   This function pops a selection box and queries the user for a
> :   response.  An integer is returned which indicates the user's choice.
> :   For example:
> :   
> :       variable rsp = get_select_box_response (
> :                         "Pick a number:",
> :			 "one", "two", "three", "four", 
> :			 4);
> :       
> :       message (Sprintf ("You chose %d", rsp, 1));
> 
> One caveat: the numbering actually seems to start from 0, so the above will
> display a number one less than you probably expect.

Thanks.  However, 'get_select_box_response' is different from
'select_list_box'.  In slrn/changes.txt, the 'select_list_box'
function is mentioned, and I see it in slrc/src/interp.c.  However, I
can't figure out how to use this 'select_list_box' function. Any
ideas?

Thanks in advance.


-- 
 Lloyd Zusman
 l...@asfast.com
Technical Details
Message-ID: <slrn5s1num.u4u.asfast@ljz.asfast.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn5rbcin.lo.asfast@ljz.asfast.net> <slrn5rbkav.os7.davis@aluche.mit.edu> <slrn5rcqht.j1.asfast@ljz.asfast.net> <slrn5s001n.8ec.davis@mygir.davis.net> <slrn5s13q8.i5u.asfast@ljz.asfast.net> <slrn5s1is0.r5t.olly@noxious.muscat.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5s1num.u4u.asfast@ljz.asfast.net>
Subject: Re: Wish list for slrn.
Date: Mon, 07 Jul 1997 00:00:00 +0000
From: asf...@asfast.com (Lloyd Zusman)
References: <slrn5rbcin.lo.asfast@ljz.asfast.net> <slrn5rbkav.os7.davis@aluche.mit.edu> <slrn5rcqht.j1.asfast@ljz.asfast.net> <slrn5s001n.8ec.davis@mygir.davis.net> <slrn5s13q8.i5u.asfast@ljz.asfast.net> <slrn5s1is0.r5t.olly@noxious.muscat.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 255229047
X-Newsgroup: news.software.readers
Organization: As Fast
Reply-To: l...@asfast.com (Lloyd Zusman)
Newsgroups: news.software.readers,alt.lang.s-lang