Simplified clearing of terminal by using clear() instead of homebrew code.