28
12
I'm on a Mac (OS 10.8.2) and I'd like to start using xterm as my default terminal, rather than Terminal.app. Unfortunately, I can't paste text into an xterm window, and this is something that I frequently want to do. When I try, it pastes strange characters rather than what I thought that I had in my clipboard. For example, if use the trackpad to highlight my username in the xterm command prompt (gregory) and then hit cmd+V to paste, the text <00f6>
appears. If the text that I copied was from a web browser, then only ö
appears (an umlauted 'o').
I have tried toggling all the settings in Pasteboard Preferences (enable syncing, update pasteboard when clipboard changes, update clipboard when pasteboard changes, update pasteboard immediately when new text is selected) and none of those settings appear to have any effect; certainly none have allowed me to paste.
The behavior that I want is the standard cmd+C to copy and cmd+V to paste, though I could accept alternative key bindings.
Can anyone here explain the behavior that I'm observing and recommend a solution?
For recent version of OSX (I use 10.12), the following works: https://stackoverflow.com/a/9525347/1353267
– Samveen – 2018-06-16T12:28:17.4932I can’t answer your question, but here are two hints: (1) Have you checked your
xterm
documentation carefully? I haven’t usedxterm
for several years, but I recall that it liked to use a mouse-click combination to paste, rather than a (something)+V
combination. (2) Did you notice thatö
(‘o’ umlaut) is U+00F6 (Unicode character 00F6)? Probably not a coincidence. – Scott – 2012-12-11T17:18:54.3572It appears that the solution might involve creating a ~/.Xmodmap file, but short of figuring out out to do that without clobbering things unintentionally, I've found a word-around with the shell command pbpaste. – Gregory – 2012-12-16T11:47:18.907