#include <X11/cursorfont.h> /* ... */ Cursor c; c = XCreateFontCursor(dpy, XC_xterm); XDefineCursor(dpy, w, c);
Where dpy is your display, w is your window, and XC_xterm is a constant that determines the shape of your cursor. Here is a list of available cursor shapes along with images.
knarf source share