Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 1995 10:32:18 EST
From:      "Kaleb S. KEITHLEY" <kaleb@x.org>
To:        "Michael C. Newell" <mnewell@lupine.nsi.nasa.gov>
Cc:        hackers@freefall.FreeBSD.org
Subject:   Re: Odd X behaviour 
Message-ID:  <199508251432.KAA26472@exalt.x.org>
In-Reply-To: Your message of Thu, 24 Aug 1995 19:23:32 EST. <Pine.SUN.3.91.950824191900.16087C-100000@lupine.nsi.nasa.gov> 

next in thread | previous in thread | raw e-mail | index | archive | help

> On Thu, 24 Aug 1995, Frank Nobis wrote:
> 
> > Check wether the numlock is active or not. If You have numlock
> > pressed, xterm and many other clients don't respond to mouse events as
> > one would expect.
> 
> Cool - that seemed to be it!!  What's also odd os that pressing the "Num 
> Lock" key leaves the "Num Lock" *LIGHT* turned on, but alternatively 
> pressing it enables/disables the buttons.  Weird.  

Toggle the value of the "typematic keyboard" in your CMOS setup. The
newer Key Tronic keyboards and who knows what else now latch the Caps_Lock 
and Num_Lock keys. The BIOS won't know what kind of keyboard you've got
unless you tell it.

> !!*THANKS*!! for the hint!
> 
> > This seems to be a generall X problem. This behaviour is reproducable
> > on Sun workstations too.
> 

Get thyself patched. This is fixed in fix-12. Here's a patch for xterm
that didn't make it into fix-12:

*** charproc.c	Wed Apr  5 19:59:00 1995
--- programs/xterm/charproc.c	Thu Aug 24 17:06:01 1995
***************
*** 1,5 ****
  /*
!  * $XConsortium: charproc.c,v 1.183 95/04/05 19:59:00 kaleb Exp $
   */
  
  /*
--- 1,5 ----
  /*
!  * $XConsortium: charproc.c /main/185 1995/08/24 17:05:11 kaleb $
   */
  
  /*
***************
*** 276,301 ****
   */
  static char defaultTranslations[] =
  "\
!  Shift <KeyPress> Prior:scroll-back(1,halfpage) \n\
!   Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\
! Shift <KeyPress> Select:select-cursor-start() select-cursor-end(PRIMARY, CUT_BUFFER0) \n\
! Shift <KeyPress> Insert:insert-selection(PRIMARY, CUT_BUFFER0) \n\
!        ~Meta <KeyPress>:insert-seven-bit() \n\
!         Meta <KeyPress>:insert-eight-bit() \n\
!        !Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
!   !Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
!        ~Meta <Btn1Down>:select-start() \n\
!      ~Meta <Btn1Motion>:select-extend() \n\
!        !Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
!   !Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
!  ~Ctrl ~Meta <Btn2Down>:ignore() \n\
!    ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY, CUT_BUFFER0) \n\
!        !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
!   !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
!  ~Ctrl ~Meta <Btn3Down>:start-extend() \n\
!      ~Meta <Btn3Motion>:select-extend()	\n\
!                 <BtnUp>:select-end(PRIMARY, CUT_BUFFER0) \n\
! 	      <BtnDown>:bell(0) \
  ";
  
  static XtActionsRec actionsList[] = { 
--- 276,307 ----
   */
  static char defaultTranslations[] =
  "\
!           Shift <KeyPress> Prior:scroll-back(1,halfpage) \n\
!            Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\
!          Shift <KeyPress> Select:select-cursor-start() select-cursor-end(PRIMARY , CUT_BUFFER0) \n\
!          Shift <KeyPress> Insert:insert-selection(PRIMARY, CUT_BUFFER0) \n\
!                 ~Meta <KeyPress>:insert-seven-bit() \n\
!                  Meta <KeyPress>:insert-eight-bit() \n\
!                 !Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
!            !Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
!  !Lock Ctrl @Num_Lock <Btn1Down>:popup-menu(mainMenu) \n\
!      ! @Num_Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
!                 ~Meta <Btn1Down>:select-start() \n\
!               ~Meta <Btn1Motion>:select-extend() \n\
!                 !Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
!            !Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
!  !Lock Ctrl @Num_Lock <Btn2Down>:popup-menu(vtMenu) \n\
!      ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
!           ~Ctrl ~Meta <Btn2Down>:ignore() \n\
!             ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY, CUT_BUFFER0) \n\
!                 !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
!            !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
!  !Lock Ctrl @Num_Lock <Btn3Down>:popup-menu(fontMenu) \n\
!      ! @Num_Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
!           ~Ctrl ~Meta <Btn3Down>:start-extend() \n\
!               ~Meta <Btn3Motion>:select-extend()      \n\
!                          <BtnUp>:select-end(PRIMARY, CUT_BUFFER0) \n\
!                        <BtnDown>:bell(0) \
  ";
  
  static XtActionsRec actionsList[] = { 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508251432.KAA26472>