-1

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: enter image description here

While running app (same terminal window): enter image description here

After exiting app: enter image description here

ravindu1024
  • 1,496
  • 1
  • 13
  • 30

1 Answers1

1

Your example application is using ncurses to draw the window contents. If you require this exact behavior, you will have to modify your application to use ncurses directly for the screen management.

Sean Bright
  • 118,630
  • 17
  • 138
  • 146