Moved all terminal support functions into MUtilities library.