Some programs that are run in the terminal, after calling them, switch the command line to their own environment, like "R" (statistical program language) or "GHCi" (interactive Haskell).
What is the technical term for this?
References, tutorials how to write bash programs with their own environment would be great.
example
name@name ~$GOOFY
GOOFY >mv foo (where goofy's mv does something else then regular mv)