Re: Main Loop, IO Channels and my CLI



Hi,

On Thu, 2006-06-22 at 21:00 +0200, �stein Johansen wrote:

> I've just made a small glib code that read commands from from a command
> line interface prompt. It uses g_main_loop and a g_io_channel. I've
> attached the code.
> 
> First:
> It nearly works as expected. The callback is called each time I enter a
> command, and it's parsed to the command handler. However, I want to
> expand this to system to use automatic string completion, (the system
> provided in glib), for all available commands.

That sounds like fun. When you have something ready and are willing to
put it under the GPL, I think it would be interesting to add this code
for the GIMP Script-Fu text console mode. The current code needs an
overhaul anyway and it would be sweet to have command completion.


Sven





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]