Skip to content

Instantly share code, notes, and snippets.

@knollet
Created August 1, 2024 15:45
Show Gist options
  • Save knollet/a6b3cd78431fefcbeca02850d0ac5316 to your computer and use it in GitHub Desktop.
Save knollet/a6b3cd78431fefcbeca02850d0ac5316 to your computer and use it in GitHub Desktop.
emasc 27.2 -- bug with putty/xterm-paste and emacs/term
;; in 27.2 ansi-term and some modification of xterm-paste don't work together so good
;; (results in a hang which you can only get out of by ^G
;; this solves it
(require 'term) ;; so this gets not overwritten the wrong way round
(defun term--xterm-paste (ev)
"Insert the text pasted in an XTerm bracketed paste operation."
(interactive "e")
(term-send-raw-string (cadr ev)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment