Tk_GetSelection
retrieve the contents of a selection