I'm building a bash script, with an interactive ASCII-menu, and want it to restore the terminal as it was before, like "vim" does, or "less".
I guess, i have to redirect the output to an other shell or something like that. But all I have found, was for redirecting files, or opening new terminal windows.