You can also go to the Mac Terminal Settings Menu and change the Color Scheme, but if you want to change the background of the Terminal using Command on the Shell you are on, you can make use of the osascript script.
Example:macOS % osascript -e 'tell application "Terminal" to set background color of window 1 to {10000,0,0,0}'

Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!