macOS Catalina: Whenever I attempt to take screen-capture via Terminal, I only get image of naked desktop background

Whenever I attempt to take a screenshot using Terminal (command: screencapture -is ~/Desktop/insertimagename.jpg), I receive an image of the desktop background. Despite taking a screenshot of programs in fullscreen mode, I still receive images of my naked desktop background.

I used to be able to take screen-capture of images with the aforementioned command with no problem. I suspect that I may have accidentally altered a setting or two in Systems Preference a few days ago.

I am still able to take screenshots successfully with the shortcut "command + control + shift + 4" and "command + shift + 3," however I am not able to do so with Terminal.

Is there a way I can return to taking screenshots with Terminal? I've attempted other command lines in Terminal (e.g., "screencapture ~/Desktop/screenshot.jpg"), however I still receive images of the naked desktop background.


Your terminal needs access to record the screen. Namely, System Preferences -> Security and Privacy -> Privacy -> Screen Recording and check the box for your terminal. This fix worked for me on 10.15.7.