Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manage X selection in xterm #171

Open
ethercrow opened this issue Nov 19, 2012 · 3 comments
Open

manage X selection in xterm #171

ethercrow opened this issue Nov 19, 2012 · 3 comments

Comments

@ethercrow
Copy link
Member

Original author: [email protected] (September 10, 2008 11:03:54)

We would like a "paste" operation to be interpreted as such, and not a
bunch of keystrokes.

This is apparently possible by capturing the mouse events:

putStr $ csi ++ "?1000h"

but I can't seem to be able to read or write to the clipboard, depite
following the instructions in this document (p. 17)

http://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf

Original issue: http://code.google.com/p/yi-editor/issues/detail?id=181

@ethercrow
Copy link
Member Author

From [email protected] on September 10, 2008 13:47:18
I don't know how to fixing this issue...

However in Vim there is a 'paste mode' (a flag to the insert mode), that disable the
specific interpretation of keystrokes.

This is turned on via :set paste, turned off via :set nopaste, and toggled via :set
invpaste.

@ethercrow
Copy link
Member Author

From [email protected] on September 11, 2008 18:14:41
Turns out that the OSC 52 ; ... works only if xterm is compiled with --enable-paste64

Why is this never enabled? :(

@ethercrow
Copy link
Member Author

From [email protected] on September 11, 2008 19:44:40
I see that this is also completely ignored by gnome-terminal.
Check out:
-> vte package (http://ftp.gnome.org/pub/gnome/sources/vte/0.17/)
-> file caps.c
-> {OSC "50;%s" BEL, "change-font-name", 0},

after this one we should find OSC 52, but nothing. Note also the very informative
comment at the top:

/* From some really old XTerm docs we had at the office, and an updated

  • version at Moy, Gildea, and Dickey. */

Back to xterm:
bracketed mode paste seems enabled by --enable-readline-mouse; but it seems to have
other strange effects on the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant