I have long used Shift-Command-4 to take screenshots, but I only recently discovered Shift-Command-5, which provides finer control (and it's much easier to use when I'm working at my treadmill desk).
Also, Command-K to clear out a terminal window (also often works in similar places, such as the MAMP error log viewer).
The various screenshot features are good, and also one of the best uses of the touchbar I've seen. Use any of the variations on taking a screenshot, and you will get a menu to take a screenshot of an area, window, full desktop, etc.
Also, Command-K to clear out a terminal window (also often works in similar places, such as the MAMP error log viewer).