FW: [Lcdproc] How can a client force the menu system to exit?

Vallevand, Mark K Mark.Vallevand@UNISYS.com
Wed Mar 21 16:52:01 2007


I've done a similar thing, but was hoping that there was something
official.

My change is really simple.  I've added a 'menu_goto _quit_'.  But, it's
not official, and I don't know if it can cause problems.  This is the
change.

menu_commands.c
744c744,746
< 	if (!menu) {
---
>    /* No menu found is an error unless the id is _quit_. */
>    /* The null menu will cause the menu system to quit. */
> 	if (!menu && (strcmp(menu_id, "_quit_") !=3D 0) ) {



Regards.
Mark K Vallevand

"If there are no dogs in Heaven, then when I die I want to go where they
went."=20
-Will Rogers

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.


-----Original Message-----
From: lcdproc-admin@lists.omnipotent.net
[mailto:lcdproc-admin@lists.omnipotent.net] On Behalf Of Marcus Priesch
Sent: Wednesday, March 21, 2007 11:18 AM
To: lcdproc@lists.omnipotent.net
Subject: Re: [Lcdproc] How can a client force the menu system to exit?

Hi,=20

On Wed, 2007-03-21 at 09:14 -0500, Vallevand, Mark K wrote:
> In my client there is a requirement to exit the menu system with no
user
> interaction.  How can a client close the menu system and return to
> displaying screens?

i have a patch here for lcdproc 0.5.0 ;)

if you are interested, i may post it to the list - or directly to
you ... ;)

however, i had no time to port it to 0.5.1, therefore i havent posted it
already ... and i dont know if its working under 0.5.1 ... but i think
its not tooo complicated at all ;)

it adds a command "menu_system_quit" and responds with "success"

greets,
mexx.



_______________________________________________
LCDproc mailing list
LCDproc@lists.omnipotent.net
http://lists.omnipotent.net/mailman/listinfo/lcdproc