On Saturday 08 December 2001 20:21, you wrote:
> On Sat, Dec 08, 2001 at 07:18:10PM -0700, Andy Kopciuch wrote:
> > On Saturday 08 December 2001 19:04, you wrote:
> > > On Sat, Dec 08, 2001 at 06:00:56PM -0500, Paul Kincaid wrote:
> > > > I'm looking for a way that if you select "Exit" from the Blackbox
> > > > Menu that you are prompted to exit rather than it just killing
> > > > everything and kicking me out to the console.  You don't know how
> > > > many times I have accidentially exited, killing everything that I was
> > > > doing....
> > >
> > > I've always had something such as:
> > >
> > >         [submenu] (Quit!) {Really quit?}
> > >                 [restart] (Restart Blackbox)
> > >                 [exit] (Quit Blackbox)
> > >         [end]
> > >
> > > Just to make it slightly harder to accidentally quit.
> >
> > Nice.  That does work, but it is a hack to something that I think should
> > be in blackbox.  It is pretty a standard programming practise to prompt
> > the user before something like this, in my experience anyway.
> >
> > >From my brief knowledge of the code base, I don't think it would be very
> > > hard
> >
> > to implement a user prompt in the shutdown() method.
>
> Make sure there is still a way to exit without confirmation.  Adding a menu
> function like 'exitconfirm' and making it the default might be appropriate.
>
>     [exitconfirm] (Quit Blackbox)
>     [end]
>
> People who don't want confirmation can edit the menu and make it [exit].

I would imagine there would be a configuration option to "confirm upon exit".
Maybe in .blackboxrc.

Adding a separate menu selection to do this doesn't seem to be efficient.

The menu selection should still be [exit], and configuration for how exiting
operates makes sense.  Not creating a different menu selection for every
possible behaviour.

Just my thoughts.

Andy

Reply via email to