[lcdproc] What is the current version to start developing?

David Douthitt n9ubh@callsign.net
Tue, 18 Sep 2001 03:49:20 -0400


wwf@splatwerks.org wrote:

> It's probably easier to just define a certain priority level that means
> "run this on exit only." The original idea posted here a bit ago mentions
> this too. You define the screen, then make sure the widgets are filled out
> before exiting.

I would discourage this idea.  Then you wind up having a priority which
means something OTHER than a display priority.  I would prefer to keep
the priority ONLY for how often a standard screen will be shown.

Setting up a screen called "exit" is simplicity from both ends; then all
the server really has to do is extract "exit" from the screen_list, and
save a pointer to it in a global location:

screen* exit_screen, s;

// ....take a screen (exit) out of the list...
// ....contained in s...

exit_screen = s;
return 0;

> Perhaps the server could include a "hey, client, you claim
> to have an exit screen defined, so gimme your stats, I'm going away real
> soon!" message when it shuts down?

This suggests a Dynamic Exit Screen, which makes it MUCH more
complicated... if you give such a message, then when do you stop taking
input?

Better idea would be to NOT remove exit from the screen list, but keep
it there and don't display it.  Then when the exit comes, just find the
exit screen in the list and use it.


-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe@lists.omnipotent.net