Path: utzoo!attcan!uunet!lll-winken!ames!think!bloom-beacon!osage.csc.ti.COM!ekberg From: ekberg@osage.csc.ti.COM Newsgroups: comp.windows.x Subject: supressing auto-repeat Message-ID: <8906082001.AA10396@osage.csc.ti.com> Date: 8 Jun 89 20:01:03 GMT References: <3460@kalliope.rice.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 42 Date: 6 Jun 89 15:40:10 GMT From: diomedes!wasg@rice.edu (Eric Salituro) Organization: Rice University, Houston References: Sender: xpert-request@expo.lcs.mit.edu In article grunwald@flute.cs.uiuc.edu writes: >Does anyone know how to suppress auto-repeat within the context of a >single application? I have various accelerators which make no sense >if you're using auto-repeat. > I have a similar question, but sort of opposite. Is there a way to alter the delay before auto-repeating keypresses? (lengthen or shorten?) I realize that I may have to alter the source, but if someone can give a clue, it would help. We are running X11R3 on a Sun 3. We just went through that last week at our site. The only way to change the autorepeat rate values is to change the server/ddx/sun/sun.h file. There are two constants defined there: #define AUTOREPEAT_INITIATE (200) /* milliseconds */ #define AUTOREPEAT_DELAY (50) /* milliseconds */ We changed the 200 to 500 which matches the value for a VT100. Many people at our site noted that 0.2 sec is too fast -- especially when pressing the D key to delete mail messages. After changing the sun.h file you will need to rebuild the server. A better approach, would be to add a switch to the server which would allow a user to pass in a value for this when they start up the server. I have been using this version of the server and am quite happy with the autorepeat initiate setting. -- tom (aisle C-4L), ekberg@csc.ti.com