Mailing List archive

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

[vdr] Re: ncurses without keyboard?



Oliver Endriss wrote:
> 
> On Monday 31 May 2004 14:25, Klaus Schmidinger wrote:
> > Wolfgang Rohdewald wrote:
> > >
> > > On Montag 31 Mai 2004 13:00, Klaus Schmidinger wrote:
> > > > I'm currently writing a VDR plugin that re-implements the
> > > > functionality that was available through DEBUG_OSD in VDR
> > > > versions before 1.3.7. Unfortunately the 'ncurses' library
> > > > apparently completly takes over control of the keyboard,
> > > > which prevents the "normal" keyboard handler in VDR from
> > > > working.
> > > >
> > > > Does anybody know a way to tell ncurses just to do the display
> > > > part and leave the keaboard alone?
> > >
> > > I suppose you call initscr or newterm or the like for initializing ncurses.
> > >
> > > If so, does it help to only call setupterm instead ? That could mean
> > > that you can only use the low level routines to access the terminfo
> > > database, but I am not sure.
> > >
> > > See man setupterm
> >
> > This doesn't sound like it would do what I want.
> > Besides, calling just setupterm() and not initscr() leads
> > to a segfault.
> 
> Did you try something like this?
>   scr = newterm(NULL, stdout, stderr);
>   set_term(scr);

Didn't work either.

I'm now calling initscr() before initializing the KBD remote control,
and that appears to work as desired.

Klaus




Home | Main Index | Thread Index