A lot of IDE's capture the output from some command line utility, displaying it in a window on the screen. Any hints on how to go about 'capturing' the output?