Hi OP, sorry for the aside, but how do you take good looking terminal photos like the first pic in the post?
yes, the drop shadow is automatic if you use the window capture mode.
1. Press CMD + Opt + 4 to enter selection mode
2. Press Space to switch to window selection mode
3. Hold Opt and click