QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Wait on PtTerminal |
Ref. No. |
QNX.000009802 |
Category(ies) |
Development |
Issue |
We have a program which processes a list of commands, one of which can be to launch a terminal. When the terminal launches, we want it to wait until it is closed before proceeding to the next step on the list. We are trying to combine PtSpawnWait() and PtTerminal.
What is the right way to do this?
|
Solution |
Right way is to spawn a pterm using PtSpawnWait() and then use a dialog with a PtTty in it. The Pt_CB_TTY_TERMINATED callback will tell you when the shell (or whatever is stated in the PtTty) exits. |
|