Syndicate

Syndicate content

Flattr


Flattr this

If you like this, you can use flattr. ;)

Imprint

About
eMail: wishinet at gmail . com
PGP ID: 0xCCCA5E74

Jabber: wishi@jabber.ccc.de

Tags for this post

Copy and Paste between X11 and Cocoa apps

txttxt

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.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Save the nature. Don't print this!


I provide textual exports for every blog entry. However let's save the nature together. The nature is everything around us. Every being should be respected. Save the nature - don't print too much.


Die Umgehung dieser Ausdrucksperre ist nach § 95a UrhG verboten!
Inhaltlich Verantwortlicher gemäß § 10 Absatz 3 MDStV: Marius Ciepluch - Anschrift via eMail. Die eMail Adresse entnehmen sie dem Impresseum dieser englischsprachigen Seite.
Aus Datenschutzgründen habe ich weder offiziellen noch behördlichen Schriftverkehr via eMail. Dazu ist die postalische, beim Dienstleister hinterlegte, Anschrift zu verwenden.

Datenerfassung

Es werden keine personenbezogenen Daten erfasst. Logdaten werden anonymisiert.