Article View: news.software.readers
Article #68570Re: slrn and selecting servers
From: Johannes Zellner
Date: Wed, 06 Dec 2000 00:00
Date: Wed, 06 Dec 2000 00:00
58 lines
2375 bytes
2375 bytes
In article <slrn92sv6q.flm.davis@aluche.mit.edu>, John E. Davis wrote:
>On 6 Dec 2000 08:00:07 GMT, Johannes Zellner <johannes@zellner.org>
>wrote:
>>yes. I think I'm searching for something like a macro. Can
>>dialogs (menus) be programmed in slang ? -- has someone
>>programmed a slang macro which does a menu ? (I don't know
>>any slang, but I guess if I'd have an example, I could modify
>>to match it my needs).
>
>I posted such a macro in <slrn8gbv14.cio.davis@aluche.mit.edu> earlier
>this year. The part of that message that you are interested in is:
>
>Put the line:
>#v+
> interpret "server.sl"
>#v-
[...]
I tried to modify this to use a list box:
#v+
% server.sl
define select_server()
{
variable n;
variable obj;
n = _stkdepth();
obj = select_list_box("SELECT SERVER",
"news.rz.uni-karlsruhe.de",
"news.vmware.com",
"secnews.netscape.com",
"starnews.stardivision.com",
"news.t-link.de",
_stkdepth() - n - 1,
0);
% ??? what comes here ???
}
select_server();
definekey("select_server", "\t", "group");
#v-
unfortunately the curses stuff seems not to be initialized
when executing this file during startup of slrn.
1) is there a chance to get this working on startup of slrn ?
2) is is possible to switch servers w/o leaving slrn as
suggested by the definekey() as above ?
--
Johannes
Technical Details
Message-ID:
<slrn92tb9d.j4v.johannes@kristine.zellner.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn92r32s.9ae.johannes@kristine.zellner.org> <slrn92r4gu.qbm.efflandt@efflandt.xnet.com> <slrn92rsg6.eh4.johannes@kristine.zellner.org> <slrn92sv6q.flm.davis@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn92tb9d.j4v.johannes@kristine.zellner.org> Subject: Re: slrn and selecting servers Date: Wed, 06 Dec 2000 00:00:00 +0000 From: johannes@zellner.org (Johannes Zellner) References: <slrn92r32s.9ae.johannes@kristine.zellner.org> <slrn92r4gu.qbm.efflandt@efflandt.xnet.com> <slrn92rsg6.eh4.johannes@kristine.zellner.org> <slrn92sv6q.flm.davis@aluche.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 701909245 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@rz.uni-karlsruhe.de X-Trace: news.rz.uni-karlsruhe.de 976137517 4432 129.13.216.10 Organization: University of Karlsruhe, Germany Mime-Version: 1.0 User-Agent: slrn/0.9.6.3 (Linux) Newsgroups: news.software.readers