Well, I understand now... ;-) Thank you all for your time.
Best regards
mARTin
Frank Heckenbach wrote:
Martin Rusko wrote:
Thank you for your reply. I know about Emil's mail, and I know that restoring screen is expected behaviour of curses (CRT) library. But I don't think, that my example doesn't leave a visible trace. I will include my code example here again.
What he meant is that the compiled program does not leave a visible trace (or only a flash, depending on some circumstances), while your source code *should* do so.
So the text is written and immediately overwritten again when the old screen contents are restored. (And the write might even be optimized away because of the overwriting.)
I also did some additional tests and found, that it is working in xterm, when that xterm is running remotely from my Sun Ultra on x86 machine running Mandrake. Maybe it is a Debian specific problem. Also I'm a little bit confused about fidling with TERM variable, as I wrote in my previous post.
Apparently your TERM setting seems to work well (maybe *too* well ;-).
Quoting a mail from Emil Jerabek of 31 Jan 2002:
: That's not a bug, that's a feature :-) : Konsole restores automatically the previous screen contents after the curses shut down : (-> your example doesn't leave a visible trace).
(This applies to most kinds of X terminals.)
I could try to avoid this feature (optionally) in the CRT unit, if there's interest (last time the issue was discussed, there was not much of a reaction, so I assumed noone really cared).
Frank