-1

When we end a ncurses application it (usually) restores the last terminal screen (at least in xterm emulators, it does). How to quit of a ncurses application properly (ending ncurses) and let the screen untouched?

Actually, it's a function that initiates ncurses, "paint" the screen and when it returns (ending and cleaning ncurses structures) the last screen is restored and everything that the function has wrote on the screen is lost (it disappears).

Luciano
  • 2,695
  • 6
  • 38
  • 53

1 Answers1

0

I had to solve this problem too - for pspg, and I found only one stable and robust solution. After ncurses ending, I draw the content again - without ncurses, just with ANSI sequences.

Pavel Stehule
  • 42,331
  • 5
  • 91
  • 94