Best practices in ncurses: using stdscr or just created windows?

I hope my title is clear enough.
To be more specific: let's say I want to make an ncurses application that has multiple windows.
Here's my problem:
Which is better in general: using stdscr + N-1 manually created windows (assuming I will be using N windows) or just working with N manually created windows and not using stdscr altogether (except that it will still be there)?

This may not be a very serious problem, but I'm curious and would love to read some opinions from experienced ncurses developers. Thanks in advance.

PS.
I believe the programming language / environment is irrelevant here, but just in case I will say it could be C / C ++ on Linux

+3


source to share


1 answer


This question can only be answered by opinion, and not objectively. However, I would avoid using stdscr. First, stdscr will always fit the screen, while your other windows will (presumably) be sized to fit their purposes. This way, stdscr will overlap with each of the other windows, which means that you need to be careful in which order you updated the windows.



+1


source







All Articles