'How to configure VS Code to auto hide, not close, the Terminal panel after a task completes

After a task completes, the terminal will stay open. Is there anyway to auto hide it?

I am not talking about closing the window as described at https://code.visualstudio.com/updates/v1_57#_automatically-close-task-terminals because that will remove all the output.

I only want to hide the Terminal so that I can still go back to the output if I need it by opening the Terminal panel.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source