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

pacmixer does weird things on mousewheel in urxvt #17

Open
mxmilkiib opened this issue Dec 22, 2017 · 1 comment
Open

pacmixer does weird things on mousewheel in urxvt #17

mxmilkiib opened this issue Dec 22, 2017 · 1 comment

Comments

@mxmilkiib
Copy link

mxmilkiib commented Dec 22, 2017

$TERM is rxvt-unicode-256color

pacmixer exhibited a few curious reactions on the use of the mouse wheel over the channel levels. Sometimes characters would appear, other times the screen would go down by a half to show black, once I got a large green block.

characters like:
38;5;6m(B
[48;5;2m
%H;1m
e

It was so weird I thought I'd try use asciinema to capture it, but it comes out on that double worse than it actually looked. What I saw was the menu text at the top be pushed along to the right by characters 'inserted' before. In this capture I saw characters were inserted at various places then the screen scroll downward to black.

It segfaulted at couple of times also.

Also, on pressing q I saw some weird characters again and had to Ctrl-c to exit.

@KenjiTakahashi
Copy link
Owner

Well, pacmixer does not have any real mouse support at the moment. So it is probably just terminal doing what terminal does, sending escape codes meant to scroll the view. But since (n)curses puts terminal in a "raw mode", these codes may end up printed on the screen or doing something that the app doesn't currently control.
In fact, I am a bit surprised that it appears to "work" (i.e. changes the volume) correctly and it's just the visual artifacts.

Anyway, I hope that with the big changes mentioned in #15, we could scratch this as well.
The "workaround" for now is, unfortunately, to just use the keyboard.

Thanks a lot for bringing this to my attention, I am so much of a keyboard based solutions user, that I tend to forget people are using their mouses sometimes ;-).

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

2 participants