code: def return_cursor(self, dataout, sx, sy, frame, wcs, key, strval=''):
          
          #print "RETURN CURSOR"
          wcscode = (frame + 1) * 100 + wcs
          if (key == '\32'):
              curval = "EOF"
          else:
              if (key in string.printable and key not in string.whitespace):
                  keystr = key
              else:
                  keystr = "\\%03o" % (ord(key))
  
          # send the necessary infor to the client
          curval = "%10.3f %10.3f %d %s %s\n" % (sx, sy, wcscode, keystr, strval)
          dataout.write(right_pad(curval, SZ_IMCURVAL))
docs: writes the cursor position to dataout.
          input:
              dataout:    the output stream
              sx:         x coordinate
              sy:         y coordinate
              wcs:        nonzero if we want WCS translation
              frame:      frame buffer index
              key:        keystroke used as trigger
              strval:     optional string value