Re: Main Loop, IO Channels and my CLI



On Sun, Jun 25, 2006 at 10:41:43PM +0200, ?ystein Johansen wrote:
> 
> But, it doesn't work on linux.... How can I get character-at-a-time
> input from a linux console?

Wouldn't it be better to use GNU readline, at least on
Linux?  It would give users all the editing operations they
are used to and honour their settings.

I admit the integration of readline to GLib main loop can be
tricky (I think about a second thread which whould just feed
complete lines to a pipe managed with GIOChannel on the
receiving end), but it can be still more elegant than
reimplementation of line editting from scratch.

Yeti


--
Anonyms eat their boogers.



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