I tried using "no-vt"(or no-vt-switch) and "disable-module=keyboard" in 
my /etc/directfbrc file, but it seems like it doesn't make any 
difference- I still can't use stdin.

I guess my app does not remain attached to the tty I started it on?

Thanks in advance,
Ido.

Unger Richard wrote:
> Hi!
> 
> I fear you may need to write the input functions for reading lines and other 
> formatted data yourself... I'm not aware of DFB including stuff for this.
> 
> You can investigate using the DFB options "no-vt" and 
> "disable-module=keyboard". That should prevent the vt switching, your app 
> should remain attached to the tty you started it on. You should then be able 
> to read from stdin.
> Whether or not this works will depend on the hardware and framebuffer driver 
> you are using:
> Depending on whether the sceen you are planning to drive contains a 
> framebuffer console or not, it may need to be initialized in graphics mode, 
> or the initialization may fail without the vt-handling code. Best to give it 
> a try.
> 
> Richard
> 
> 
> 
> 
>  
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Ido Yehieli [mailto:[EMAIL PROTECTED] 
>> Gesendet: Mittwoch, 29. März 2006 15:30
>> An: [email protected]
>> Cc: Unger Richard
>> Betreff: Re: AW: [directfb-users] using stdin with directfb
>>
>> Thank's Richard,
>>      but IDirectFBInputDevice, at least according to manual
>> (http://www.directfb.org/docs/DirectFB_Reference/IDirectFBInpu
>> tDevice.html)
>> seems to only have a method for reading a single key at a 
>> time (GetKeyState). Can't I get a normal stdin-like 
>> interface, for reading entire lines?
>>      Also, this program has to run on a machine that does not 
>> yet have any input to it, all input is given by telneting to 
>> it - so I _have_ to use the vt my app was started on.
>>
>> Thanks in advance,
>> Ido.
>>
>> Unger Richard wrote:
>>> Hi!
>>>
>>> By default DirectFB switches to a new vt - you can read 
>> from stdin, but your Keyboard is no longer connected to the 
>> vt your app was started on, so you won't read any input from stdin.
>>> You need to use DirectFB's input layer.
>>>
>>> Richard
>>>
>>>  
>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: [EMAIL PROTECTED]
>>>> [mailto:[EMAIL PROTECTED] Im Auftrag von Ido 
>>>> Yehieli
>>>> Gesendet: Mittwoch, 29. März 2006 14:24
>>>> An: [email protected]
>>>> Betreff: [directfb-users] using stdin with directfb
>>>>
>>>> Hi,
>>>>      I'm trying to get data from stdin while running 
>> directfb, can it 
>>>> be done, or must I use IDirectFBInputDevice?
>>>>
>>>> Thanks in advance,
>>>> Ido Yehieli.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> directfb-users mailing list
>>>> [email protected]
>>>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>>>
>>
> 


_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to