[Top][All Lists]

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

Re: mvwprintw

From: Bob Rossi
Subject: Re: mvwprintw
Date: Mon, 3 Apr 2006 19:43:55 -0400
User-agent: Mutt/1.5.9i

On Mon, Apr 03, 2006 at 06:09:14PM -0400, Thomas Dickey wrote:
> On Mon, 3 Apr 2006, Bob Rossi wrote:
> >OK, I've got more info. I've tracked it down to here
> >ncurses/tty/lib_mvcur.c:839,
> >tputs(buffer, 1, _nc_outch);
> >
> >If I put a _nc_flush () call before that, there is no error. An
> >_nc_flush () after that line produces the corrupted terminal.
> >
> >(tgdb) p buffer
> >$1 =   "."
> >
> >For some reason, I can't step into tputs to debug it. Any idea why?
> There are two tputs() functions - one in ncurses, one in the termcap 
> library.  Perhaps the debugger is confused.
> On the other hand, it might be that termcap's tputs() is being called.
> I don't see any tputs in your trace either.
> tputs() is supposed to handle time-delays that might be embedded in a
> terminfo string (the numbers in angle-brackets, e.g., in vt100 entry).
> termcap/terminfo syntax for padding is not compatible...
> Aside from that, the two functions should be interchangeable.

Thanks Thomas! That's the problem. You noticed I was linking in
-ltermcap. If I remove this from the link line, everything works as
expected. This is great news considering I won't have to modify ncurses
or readline.

Now, does this mean that CGDB will no longer be able to support the
termcap library? I use termcap to get capability names like End, Home,

I lookup both the info from termcap and terminfo and if I find either of
the input, I match the data.

Thanks again!
Bob Rossi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]