This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-24
Channels
- # aleph (5)
- # announcements (18)
- # babashka (3)
- # babashka-sci-dev (56)
- # beginners (56)
- # biff (5)
- # calva (27)
- # cider (20)
- # clj-commons (2)
- # clj-kondo (17)
- # cljsrn (18)
- # clojure (41)
- # clojure-europe (24)
- # clojure-nl (1)
- # clojure-serbia (1)
- # clojure-uk (15)
- # clojured (1)
- # clojurescript (40)
- # cursive (39)
- # datahike (2)
- # datalevin (4)
- # datascript (5)
- # emacs (23)
- # events (2)
- # figwheel-main (3)
- # inf-clojure (1)
- # instaparse (23)
- # introduce-yourself (3)
- # jobs (3)
- # jobs-discuss (13)
- # joyride (1)
- # juxt (10)
- # malli (21)
- # nbb (29)
- # off-topic (18)
- # pathom (29)
- # polylith (11)
- # project-updates (1)
- # proletarian (1)
- # rdf (2)
- # re-frame (4)
- # reitit (2)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (52)
- # tools-deps (57)
- # xtdb (32)
I recently upgraded Emacs and now I’ve been getting stray control characters inserted into my buffers in terminal (`-nw`) mode, I think based on mouse events. Sometimes (as in this example) the cursor jumps to the beginning of the buffer before the characters are inserted, sometimes not. Has anyone else run into this? I use xterm-mouse-mode
and iterm2 on MacOS.
I have this config snippet which I’ve used for years to get the scroll wheel working
(global-set-key [mouse-4] '(lambda ()
(interactive)
(scroll-down 1)))
(global-set-key [mouse-5] '(lambda ()
(interactive)
(scroll-up 1)))
scrolling the mouse sends M-[
to the terminal
usually I look to doom emacs for how they handle things like this https://github.com/doomemacs/doomemacs/blob/3b789752a30419535b328c605957b6b43a9d47fa/modules/os/tty/config.el
hmmm yeah
to clarify, all of my mouse interactions still work (clicking to move the cursor, dragging to select, and scrolling with the mouse wheel). It’s just that sometimes I also get these random inserted characters. It’s possible that the mouse is a red herring and that these chars are coming from somewhere else.
well I guess all I see are your bindings so if you say so then it probably is
35 is the foreground magenta color code
and 25 would be blinking?
well no it's the reset code for blinking
unless it's true color in which case it could be part of an rgb
I wonder if there’s a bug in my color theme. I might try another to see if I have the same problem there. Thank you, that is a really helpful thread for me to pull on.
i'm looking at this https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
I hope it helps!
I wonder if it's cursor change escape sequences. do you use evil mode?
ok, disregard!
spacemacs doesn't have much either fwiw