Hi,
I would like to know how to build a program which cleans its outputted text up after completition like 'man' or vi-texteditor.
when I start writing at stdout I found no chance of cleaning up the text when the program ends.
I'd like to program a behavior like vi.
( when closing vi, the shell displays the same like bevore editing a file )
unfortunately I found just sourcecode listings of the 'more' or 'less' utils which don't clean up afterwards.
Maybe can setvbuf be used to do so ???
any help welcome
thanks
günter guenter
mail: porzer_guenter@hotmail.com
I would like to know how to build a program which cleans its outputted text up after completition like 'man' or vi-texteditor.
when I start writing at stdout I found no chance of cleaning up the text when the program ends.
I'd like to program a behavior like vi.
( when closing vi, the shell displays the same like bevore editing a file )
unfortunately I found just sourcecode listings of the 'more' or 'less' utils which don't clean up afterwards.
Maybe can setvbuf be used to do so ???
any help welcome
thanks
günter guenter
mail: porzer_guenter@hotmail.com