Xwd
In the X Window System, xwd is a program for capturing the content of the screen or of a window and saving it into a file. xwd can be run in two ways: if user specifies the whole screen or the name or identifier of a window as an argument, the program captures the content of the window; otherwise, it changes the shape of the cursor and waits for the user to click in a window, whose content is then captured.
Read more about Xwd.