Sorry for not being descriptive in the caption - I dont know how to phrase this.
What I want to do is to run my command line program from bash and in the full terminal window and when i exit it, all output from the program should be cleared. Eg: Functionality of "testdisk". It runs in the full window, but when you exit testdisk, it will return you to the original window.
How can this be done?
Before running app:
While running app (same terminal window):
After exiting app: