I have a C++ application that instantiates various instances of the same object (let's call it MainExec) and puts them into a vector. Each instance of a MainExec runs in its own thread. The code was originally written to run only one instance (thread) of the MainExec object and it uses Curses to interact with the user. The Curses session runs on the same physical terminal screen where the program was executed in and is used to read user commands and display output states.
Now that the code is being expanded to run more than one MainExec object at one time I am wondering if it is possible to have each MainExec thread spawn or create/open a new physical terminal screen to launch its Curses session so the user can interact with each instance separately but can also monitor them all at once. So if the program is told to run 4 instances of MainExec then I would like to get 4 different physical terminals on the computer monitor.
Is this possible and does anyone have example code if this is the case?
Thanks.
-Marco
Now that the code is being expanded to run more than one MainExec object at one time I am wondering if it is possible to have each MainExec thread spawn or create/open a new physical terminal screen to launch its Curses session so the user can interact with each instance separately but can also monitor them all at once. So if the program is told to run 4 instances of MainExec then I would like to get 4 different physical terminals on the computer monitor.
Is this possible and does anyone have example code if this is the case?
Thanks.
-Marco
Comment