http://blahonga.yanson.org/2009/09/modifying-gnome-terminal-to-understand.html
new protocol handler in gnome-terminal called src.
example of a clickable src link src:///etc/apache2/httpd.conf:13
then add a tool which converts file paths in compiler error output to src:
links.