This is useful for making screencasts, or bug reporting. Note: This is copied from aszlig's pull request: 05831d3a668361b2