|
From: | Christer Enfors |
Subject: | Re: filter() prevents clearing of screen, but still clears current line |
Date: | Fri, 16 Mar 2007 11:31:35 +0100 |
User-agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
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 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? -- Christer Enfors
[Prev in Thread] | Current Thread | [Next in Thread] |