bug-ncurses
[Top][All Lists]
Advanced

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

Re: ncurses 5.7 set_field_back problem


From: Thomas Dickey
Subject: Re: ncurses 5.7 set_field_back problem
Date: Fri, 02 Dec 2011 05:07:34 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Dec 01, 2011 at 02:31:59PM +0000, Pablo Cazallas Gonz?ffffe1lez wrote:
> Hi,
> 
> Thanks again for your quickly answer, Thomas.
> 
> I am using the ncurses version "ncurses-5.7+20081213", over an IBM-AIX
> machine, using a Reflection Terminal to connect to the Host and work in it.
> 
> Could it be a problem with the terminal emulation or the operating system
> instead of a library bug?  (I don't think so, because it works in the case I
> told, but everything's possible in this amazing world...)

I suppose it's possible - though it would be surprising.  But it is possible
to test the idea.  Using the "script" program (which is generally available)
you can run your test program in script and capture the "typescript" file.

The "typescript" file contains nonprinting characters.  I've a small program
(see ftp://invisible-island.net/ncurses/unmap.zip) "unmap" which can translate
that into all printable text.  The "map" program in the same zip-file does
the reverse.  For example
        unmap <typescript >readable
        map <readable >unreadable

slowcat (another zip-file) prints its output slowly on the terminal, e.g.,
        slowcat <typescript
 
Given a typescript file (or its printable equivalent using unmap), I can
study it and see if the blinking characters really should appear (or if
there's a bug to investigate).  If you were to send a typescript file in
email, then it should be as an attachment of course - it's very hard to
pick it out of inline mail.
 
> Best regards,
> Pablo.
> LRU #493328
> 
> 
> 
> --- El jue, 1/12/11, Thomas Dickey <address@hidden> escribi?:
> 
> De: Thomas Dickey <address@hidden>
> Asunto: Re: ncurses 5.7 set_field_back problem
> Para: "Pablo Cazallas Gonz?ffffe1lez" <address@hidden>
> CC: address@hidden
> Fecha: jueves, 1 de diciembre, 2011 11:12
> 
> On Thu, Dec 01, 2011 at 08:21:48AM +0000, Pablo Cazallas Gonz?ffffe1lez wrote:
> > Hi all,
> > 
> > I have a problem while developing with ncurses 5.7, exactly with the 
> > "set_field_back" method, it is:
> > 
> > When trying to set the video attribute of a field to A_BLINK, if its buffer 
> > is longer than 13 bytes and it is empty, the method doesn't work well, but 
> > it still returns E_OK.
> > 
> > When doing the same, if the buffer is not longer than 13 bytes, it works 
> > fine.
> > 
> > Here is a sample code that demonstrates it:
> 
> I made some minor fixes, and ran both here without seeing a problem.
> (attaching the updated examples).
> 
> I made some fixes to field_buffer a while back - what version of ncurses
> are you using?? I tested with
> ??? ncurses 5.7.20081213
> and
> ??? ncurses 5.9.20111126
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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