bug-ncurses
[Top][All Lists]
Advanced

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

Re: Much Weirdness on last printing line...


From: Thomas Dickey
Subject: Re: Much Weirdness on last printing line...
Date: Sat, 24 Feb 2001 07:11:02 -0500
User-agent: Mutt/1.2.5i

On Fri, Feb 23, 2001 at 05:41:32PM -0800, Ryan Pavlik wrote:
> OK I have a problem I've not seen reported or have experienced before.
> I'm working on a scriptable roguelike-ish game engine of sorts.
> However, I'm experiencing misrendered output and some screen garbage
> whenever the *last* line of output changes in the last 4-5 columns.
> Here's an example:

hmm - let's see if we can cut this down a little (it sounds like it would
take me all day to get there, but you've already got it set up).  I would
add a command to your application to turn tracing on/off, and toggle it
on 1-2 positions before the problem, and then off once it's gotten past
the problem area.  It's not clear from the context whether it's a bug in
the update code or elsewhere, but a detailed trace would show the characters
sent to the screen, including the '1' that you're showing (in particular,
it would show the tputs calls).

something like this
        trace(flag ? TRACE_MAXIMUM : TRACE_DISABLE);
and linked with the debug library of course.

Once you're setup that way, it's relatively simple (well, I do it) to add
_tracef calls in the problem area to get details that aren't in the normal
traces.
 
> @ represents the character, and as the character moves to the right
> across the bottom row, weirdness occurs (note that everything else
> stays the same on the screen except the last row so to conserve space
> I'll just show it):
> 
>  address@hidden => address@hidden => address@hidden => #..@@..... => 
> address@hidden
>            ^           ^           ^           ^              ^

-- 
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com



reply via email to

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