Copy and Paste between X11 and Cocoa apps

It's not a bug...

No... surely not. But if you're using Wing IDE for example and you edit files with an X11 based editor, you might want to sync your clipboards. Thing is: it seems MacOS 10.5's X11.app doesn't allow this by default and there's no option for that based on the frontend.

Edit the plist

Let X11.app's Preference menu activate the native key-set emulation to make use of the Apple keys. Do not use this preference panel again because it'll undo the following:

Bild 1.JPG

This options-file is located in ~/Library/Preferences/ org.x.X11.plist. The Plist-Editor is part of the Xcode development tools. Activate what you need.

That's it!

So hopefully now you've saved some time. Consider the following as an appendix in order to make more use of Xterm and other applications that are X11 based and useful on a MacOS system:

.Xressources

  1. xterm*cursorColor: green
  2. xterm*pointerColor: blue
  3. xterm*foreground: white
  4. xterm*background: black
  5. rxvt*foreground: white
  6. rxvt*background: black
  7. rxvt*font: fixed
  8. xterm*scrollBar: true
  9. xterm*saveLines: 5000
  10. xterm*color4: blue
  11. xterm*trimSelection: true
  12. xterm*printerCommand: cat >> /Users/wishi/xterm-print-output
  13.  
  14. XTerm*VT100.Translations: #override \
  15. <KeyPress> Prior: scroll-back(1,page) \n\
  16. <KeyPress> Next: scroll-forw(1,page) \n\
  17. Meta <KeyPress> W: quit() \n\
  18. Meta <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
  19. <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\

~/.xinitrc

  1. #! /bin/sh
  2.  
  3. # Load the .Xresources file
  4. xrdb -l ~/.Xresources
  5.  
  6. # if you don't use quartz-wm use it at least to
  7. # sync the osX clipboard with the X11 CLIPBOARD
  8. # quartz-wm --only-proxy &
  9.  
  10. quartz-wm
  11.  
  12. xterm &
  13. xterm

Now have fun,
wishi

Post new comment

The content of this field is kept private and will not be shown publicly.

Ihr Browser versucht gerade eine Seite aus dem sogenannten Internet auszudrucken. Das Internet ist ein weltweites Netzwerk von Computern, das den Menschen ganz neue Möglichkeiten der Kommunikation bietet.

Da Politiker im Regelfall von neuen Dingen nichts verstehen, halten wir es für notwendig, sie davor zu schützen. Dies ist im beidseitigen Interesse, da unnötige Angstzustände bei Ihnen verhindert werden, ebenso wie es uns vor profilierungs- und machtsüchtigen Politikern schützt.

Sollten Sie der Meinung sein, dass Sie diese Internetseite dennoch sehen sollten, so können Sie jederzeit durch normalen Gebrauch eines Internetbrowsers darauf zugreifen. Dazu sind aber minimale Computerkenntnisse erforderlich. Sollten Sie diese nicht haben, vergessen Sie einfach dieses Internet und lassen uns in Ruhe.

Die Umgehung dieser Ausdrucksperre ist nach §95a UrhG verboten.

Mehr Informationen unter www.politiker-stopp.de.