The idea of closing and keeping the state of the terminal application is to provide a faster way of closing it.
The "kate" editor which I use opens the terminal embedded and has this kind of "button" which stays "checked" when the terminal is open, so we can close the terminal faster than typying "exit" inside it.
About opening the terminal, I do not see a Ubuntu API to do that, as far I know the way of opening is to use QProcess class.
The idea of closing and keeping the state of the terminal application is to provide a faster way of closing it.
The "kate" editor which I use opens the terminal embedded and has this kind of "button" which stays "checked" when the terminal is open, so we can close the terminal faster than typying "exit" inside it.
About opening the terminal, I do not see a Ubuntu API to do that, as far I know the way of opening is to use QProcess class.