saoimage -wcscom sgsc_-har_15_%s test.fitWhenever you click w, sgsc will be called to find the closest star within 15 arcseconds of the current cursor location, giving the distance from the cursor in the last column:
sgsc 2.5, 29 October 1998, Doug Mink SAO Find closest star GSC number RAJ2000 DecJ2000 Mag Type Arcsec 4383.0434 09:54:31.937 +69:01:26.94 12.00 0 0.90 sgsc 2.5, 29 October 1998, Doug Mink SAO Find closest star GSC number RAJ2000 DecJ2000 Mag Type Arcsec 4383.0863 09:54:19.037 +69:02:38.62 12.34 0 1.62 sgsc 2.5, 29 October 1998, Doug Mink SAO Find closest star GSC number RAJ2000 DecJ2000 Mag Type Arcsec 4383.0613 09:54:45.578 +68:56:59.46 11.93 0 1.28