bug-ncurses
[Top][All Lists]
Advanced

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

Re: filter() prevents clearing of screen, but still clears current line


From: Thomas Dickey
Subject: Re: filter() prevents clearing of screen, but still clears current line
Date: Fri, 16 Mar 2007 07:39:26 -0400 (EDT)

On Fri, 16 Mar 2007, Christer Enfors wrote:

Thomas Dickey wrote:
On Fri, 16 Mar 2007, Christer Enfors wrote:
I've got another problem with my instring program. Using filter() I've managed to avoid clearing the entire screen. But ncurses still clears the current line. I want to prevent ncurses from doing that. Does that mean that I'll have to change the ncurses source? I could probably figure out how to do that, but if there's an easier way...

I assume you mean that you don't want it to clear after the end of
your window on the current line.  Again, you can fool it:

Actually, I'm not explicitly opening a window (should I?), I just call

initscr and newterm make a standard window (stdscr).

newterm(). And come to think of it, I don't know if the code clears the line *after* my form field; what I did notice was that it erased my "label" in *front* of the field. Therefore, I assumed it was clearing the entire line.

    a) make ncurses think that the screen does not extend past your
       window's right margin, and
    b) remove the "el" capability (so it will be forced to use blanks
       to fill the line).

See use_env() for the first part.

Given the above, should I still do what you say here?

yes - I think that's the way to go (if you want to retain text on the
right-side of your prompt).   I'd normally assume a one-line screen for
filter() uses the whole line.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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