From owner-freebsd-hackers Wed Nov 8 05:47:34 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id FAA05754 for hackers-outgoing; Wed, 8 Nov 1995 05:47:34 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id FAA05748 for ; Wed, 8 Nov 1995 05:47:25 -0800 Received: by sequent.kiae.su id AA16094 (5.65.kiae-2 ); Wed, 8 Nov 1995 16:45:55 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Wed, 8 Nov 95 16:45:53 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.12/8.6.12) id QAA02709; Wed, 8 Nov 1995 16:42:40 +0300 To: "Jordan K. Hubbard" Cc: FreeBSD hackers , Joerg Wunsch References: <2079.815799713@time.cdrom.com> In-Reply-To: <2079.815799713@time.cdrom.com>; from "Jordan K. Hubbard" at Tue, 07 Nov 1995 19:01:53 -0800 Message-Id: Organization: Olahm Ha-Yetzirah Date: Wed, 8 Nov 1995 16:42:39 +0300 (MSK) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast Subject: Re: Ack! Help, Andrey! I'm having troubles in libdialog! Lines: 24 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1106 Sender: owner-hackers@freebsd.org Precedence: bulk In message <2079.815799713@time.cdrom.com> Jordan K. Hubbard writes: >> Better solution for it will be passing NULL pointer to dialog functions >> because you not use result[] at all and make them understand NULL >> pointer there. >Well, while we're wishing here.. :-) >A *far far* better solution would be to be able to add callbacks for >each item created, then I'd never even need to parse that &%^%$*!! >result string at all! The original dialog/libdialog was designed for >use from shell scripts, and not from C. The shortcomings of this are >obvious. I can make checklist function understand NULL and do nothing for 'result' arg and pass char array as yet one additional arg, i.e. char hit[nitems]. When function returns, it will have 1 for selected items and 0 for others. Is it what you want here? -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - http://dt.demos.su/~ache : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849