In Linux, I'm using imagemagick import -window $WINDOWID
to take a screencapture of the terminal.
Is there something similar in OS X?
Most Android devices should be able to take screen grabs by holding down the power and volume down buttons, though holding the power and home buttons (if your device has a physical button) may also work. Several Android devices have a screenshot button in the pull-down shade.
Press Command-Control-Shift-3 to copy the whole screen. The screenshot will be automatically saved to the clipboard. Select the application where you want to insert the captured image, like Word, Skype, or Outlook. Press Command-V to paste the screenshot.
Hold down the power button and press the volume-down button.
You want to be using screencapture
rather than import
, which only works on X11 windows.
If the window is in front, you can try:
screencapture -l$(osascript -e 'tell app "Terminal" to id of window 1') test.png
See this question for some more background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With