Index:
[thread]
[date]
[subject]
[author]
From: Andrew Apted <ajapted@netspace.net.au>
To : ggi-develop@eskimo.com
Date: Tue, 18 Aug 1998 00:36:24 +1000
Target option parsing
Hi Folks,
I've added some code to lib/libggi/display/common/parsing.inc for option
parsing by display targets. All you need to do is setup an array of
ggi_option with each option name and default value, and call
_GGIparseoptions(), then use the results. The fbdev target already does
this (check out display/fbdev/visual.c), and I will soon update trueemu,
palemu & monotext similiarly.
Part of the idea is to be able to specify options for each target in an
environmental variable, such as GGI_FBDEV_OPTIONS for the fbdev target,
and GGI_TRUEEMU_OPTIONS for the trueemu target. These options are
overridable by options in the argument string itself, as in :
export GGI_FBDEV_OPTIONS='-mouse=microsoft -joystick=ibm'
export GGI_DISPLAY='fbdev:-mouse=logitech:/dev/fb1'
(the -mouse in GGI_DISPLAY overrides the one in GGI_FBDEV_OPTIONS).
Cheers,
_____________________________________________ ____
\ /
Andrew Apted <andrew@ggi-project.org> \/
Index:
[thread]
[date]
[subject]
[author]