Mailing List archive

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

[vdr] Re: ncurses without keyboard?



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);
  ...

Once I tried to use curses for OSD emulation of the remote plugin,
but it's really hard if you have more than one control terminal.
Now I know why it's called 'curses'. :)

Finally I gave up and used ANSI control codes for cursor control etc.

Oliver




Home | Main Index | Thread Index