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

Strange mouse selection on elementary os #34

Closed
mbndr opened this issue Apr 19, 2016 · 10 comments
Closed

Strange mouse selection on elementary os #34

mbndr opened this issue Apr 19, 2016 · 10 comments

Comments

@mbndr
Copy link

mbndr commented Apr 19, 2016

I can't select how I would normally do with the mouse.
When I move my mouse cursor somewhere on the micro screen, it selects from the current text cursor (or sometimes from the top) to the mouse position, I don't have to click for beginning selection.
I think it should work like in every text editor.
Double click for a word and three clicks for a line are working how expected.

$TERM: xterm
$SHELL: /bin/bash
uname -a: Linux element 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
@aerth
Copy link
Contributor

aerth commented Apr 19, 2016

Just ran into this bug on Debian, closing the terminal and reopening fixed it for me.

TERM=xterm
SHELL=/bin/bash

Linux 3.16.0-4-amd64 # 1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux

@mbndr
Copy link
Author

mbndr commented Apr 20, 2016

Not for me, I reopened many times.

@zyedidia
Copy link
Owner

zyedidia commented Apr 22, 2016

It seems like the terminal on Elementary OS is sending mouse motion events strangely. It correctly sends key press and key release events but for mouse motion, it sends the key as 32 which means a motion event with mouse button 1 held down. I'm not really sure why it's doing this. I think I might be able to work around this though.

@aerth
Copy link
Contributor

aerth commented Apr 22, 2016

  "\u001b[?25l\u001b[?25l"

I captured it on Debian 8 + GNOME terminal 3.14.1 and the json file was full of these.. hope this helps

asciicast

@aerth
Copy link
Contributor

aerth commented Apr 22, 2016

I notice the mouse disappears while typing on GNOME terminal, but not on xfce4-terminal

This bug effects only gnome-terminal on my system. xfce4-terminal and xterm work as expected.

zyedidia added a commit that referenced this issue Apr 22, 2016
Fixes #34

This commit requires a modification to tcell before it will work.
@zyedidia
Copy link
Owner

I've got a fix now, but it requires a modification to tcell (which you can see here). I'll open a pull request to tcell.

@zyedidia
Copy link
Owner

See gdamore/tcell#94.

@aerth
Copy link
Contributor

aerth commented Apr 25, 2016

@probandula is it only on gnome-terminal ? Try others such as xterm, xfce4-terminal, or lxterminal to see if it is OS specific or what... I think it is gnome-terminal specific

@zyedidia
Copy link
Owner

This should be fixed since I am now using my fork of tcell.

@mbndr
Copy link
Author

mbndr commented Apr 27, 2016

Working well ;) Thanks 👍

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

No branches or pull requests

3 participants