Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-21-2011, 08:29 AM   #1
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
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:
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.
Old 10-12-2011, 04:10 PM   #2
Registered: Aug 2003
Location: france
Distribution: suse/fedora
Posts: 105

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-terminal with Compiz, howto disable real transparency? mutable Linux - Desktop 2 10-22-2012 08:44 AM
[SOLVED] PS2 wheel mouse/wheel does not work kph56 Ubuntu 2 12-21-2010 09:42 PM
Disable close and restore buttons in gnome-terminal srinivas1224 Linux - Desktop 0 11-05-2008 10:41 AM
Gnome. Change mouse wheel behavior. mooreted Mandriva 1 02-27-2005 07:12 PM
Gnome Terminal/Tail/ mouse scroll wabbit Linux - General 1 04-16-2003 08:58 PM

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration