as the topic suggests..
I want to make some console mode program..
that captures the whole console i/o just like the 'less' linux command does..
(it keep scrolling in the page with arrow keys and as soon as the program exits it restores the console exactly as it was before executing 'less' command)
or like some console mode menu driven program that screen should keep refreshing.. but not like screen keeps on scrolling
how can this be implemented?