LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Trying to disable the mouse wheel in gnome-terminal (https://www.linuxquestions.org/questions/linux-desktop-74/trying-to-disable-the-mouse-wheel-in-gnome-terminal-904201/)

jgombos 09-21-2011 07:29 AM

Trying to disable the mouse wheel in gnome-terminal
 
Is it possible to disable the mouse wheel in gnome-terminal?

I need to use the mouse wheel in gnome-terminal without it being captured, so that the shell (gnu screen in this case) can respond to wheel use. I tried adapting the xterm way of doing this by replacing "xterm" and "xterm*vt100" with "gnome-terminal" in the following xrdb input:
Code:

XTerm*saveLines: 0
XTerm*vt100.translations: #override \n\
  Ctrl <Btn4Down>: string(0x1b) string("[25S") \n\
  Lock Ctrl <Btn4Down>: string(0x1b) string("[25S") \n\
  Lock @Num_Lock Ctrl <Btn4Down>: string(0x1b) string("[25S") \n\
  @Num_Lock Ctrl <Btn4Down>: string(0x1b) string("[25S") \n\
  <Btn4Down>: string(0x1b) string("[5S") \n\
  Ctrl <Btn5Down>: string(0x1b) string("[25T") \n\
  Lock Ctrl <Btn5Down>: string(0x1b) string("[25T") \n\
  Lock @Num_Lock Ctrl <Btn5Down>: string(0x1b) string("[25T") \n\
  @Num_Lock Ctrl <Btn5Down>: string(0x1b) string("[25T") \n\
  <Btn5Down>: string(0x1b) string("[5T") \n\
  Shift <KeyPress> Prior: string(0x1b) string("[25S") \n\
  Shift <KeyPress> Next: string(0x1b) string("[25T") \n

That did not work. The mouse wheel still scrolls back in gnome-terminal.

utopicdog 10-12-2011 03:10 PM

I think what you will have to do there is to recompile the gnome terminal and take over the mousewheel event for youself, if the mousewheel event has a unique action, you can create a pipe or similar to your own application. tricky.


All times are GMT -5. The time now is 03:48 AM.