home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21475 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.6 KB

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!bam
  2. From: bam+@cs.cmu.edu (Brad Myers)
  3. Newsgroups: comp.windows.x
  4. Subject: Help with selection
  5. Message-ID: <C19J7z.I2v.2@cs.cmu.edu>
  6. Date: 22 Jan 93 16:02:22 GMT
  7. Article-I.D.: cs.C19J7z.I2v.2
  8. Sender: news@cs.cmu.edu (Usenet News System)
  9. Organization: School of Computer Science, Carnegie Mellon
  10. Lines: 29
  11. Nntp-Posting-Host: bam.garnet.cs.cmu.edu
  12.  
  13. Can someone send me code that successfully handles the X/11 copy-paste
  14. selection.  So far, we have just been setting the x cut buffer using 
  15.        (setf (xlib:cut-buffer display) str)
  16. (in Lisp) but this isn't good enough when some other application
  17. (like xterm) has the selection "grabbed" (reverse video).  If no-one owns
  18. the selection, then this works fine, actually.  No one in the
  19. Lisp community seems to have this problem solved, so I am asking a wider
  20. audience.  I can't figure out what I need to do from the ICCCM, but maybe
  21. I can figure it out from a working C program.  If you have (hopefully a
  22. small piece of) code that sets the current selection, turning off the 
  23. reverse video in other windows, could you please send it to me?
  24.  
  25. Also, is there any standard format for copying rich (formatted) text or
  26. graphics?  For example, does anyone have code that will accept or 
  27. place formatted text into the cut buffer for exchange with FrameMaker?
  28.  
  29. Thanks,
  30.  
  31. Brad A. Myers
  32. School of Computer Science
  33. Carnegie Mellon University
  34. 5000 Forbes Avenue
  35. Pittsburgh, PA  15213-3891
  36. (412) 268-5150
  37. FAX: (412) 681-5739
  38. bam@a.gp.cs.cmu.edu
  39.  
  40.  
  41.  
  42.