bug-ncurses
[Top][All Lists]
Advanced

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

Re: does padding work with tput?


From: Thomas Dickey
Subject: Re: does padding work with tput?
Date: Mon, 7 Oct 2002 16:28:57 -0400
User-agent: Mutt/1.3.27i

On Mon, Oct 07, 2002 at 12:47:17PM -0700, Frank Henigman wrote:
> In ncurses-5.2-20020907 I get no padding when I do "tput clear" but when
> nvi starts it clears the screen and the padding characters are sent.
> The difference seems to be that nvi calls newterm() which calls baudrate()
> which sets the global ospeed.  Then in delay_output() ospeed is used to
> calculate the number of pad bytes.  In tput, ospeed is never set so it
> always calculates zero pad bytes.  Should tput be doing something to set
> ospeed?  Thanks.

perhaps.  I'm not sure:  the output of tput is usually a string, which
may be captured into a shell script.  I guess if padding consists of
null bytes, that's ok.  But if there is no padding character, tput would
then do padding using timing delays.  So it's possible to correct it
as you suggest, but the correction doesn't necessarily affect all uses
of tput.

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




reply via email to

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