Problem: ctwm, keypad, and XF86 3.1.2

Problem: ctwm, keypad, and XF86 3.1.2

Post by Christopher R. Wre » Thu, 07 Sep 1995 04:00:00


I just upgraded from XF86 3.1 to 3.1.2, and ctwm (v3.3) seems to
have lost the ability to catch keypad presses.  This worked under
3.1.  xev sees the keypad presses just fine.  I'm running 1.2.13,
and XF86_SVGA.  I recompiled ctwm with the 3.1.2 libraries, but
the problem didn't go away.  I have the ELF distribution of XF86
with the a.out libraries.  The unfunctional lines of my ctwmrc

"KP_1"  = m      : all    : f.gotoworkspace "1"
"KP_2"  = m      : all    : f.gotoworkspace "2"
"KP_3"  = m      : all    : f.gotoworkspace "3"

Has anyone else experienced this?  



1. keypad(win, TRUE) means keypad not TRUE?

: I've got some annoying bug with my application. ALL windows I open have a
: keypad(win, TRUE) command to allow cursor keys. Sometimes, if I type the up
: cursor arrow while the screen is refreshed, I get [ESC]A in the window buffer
: as TWO separate characters instead of one integer (KEY_UP). As [ESC] is define

Curses has a little timing trouble in the ESC sequence detection area.
One is that it does a sleep(1) to see if the next character coming in is
part of the sequence...  sleep(1) might be as little as 1/100 of a second.
The other is that it doesn't properly block if you have another flag set,
the name of which escapes me at the moment, I think nodelay(...,TRUE).

This is usually only a problem across some type of buffered interface, like
TCP, or a compressing modem, possibly a smart serial card with buffers.

SCO had a patch, which really only consisted of lengthening the sleep to 8
seconds, but then your legitimate ESC would take 8 seconds to have an

Unisys had a replacement libcurses, and I think that SVR4.2 should have the
problem resolved by some different method.


                - Pope Valley & Napa CA.

2. ISDN+PPP+Hosting Domain

3. Matrox Mystique ands X.

4. Downmixing # of channels with ALSA

5. problems with ctwm, xfig-2.1.1, xloadimage3.03 under slackware-elf-beta

6. Enabling PHP?

7. keypad() problem in curses

8. Pkzip

9. Problems with curses in an hpterm with keypad disabled

10. Q: >8 bpp in XF86 3.1 or XF86 3.1.1?

11. Curses: problem with getch while keypad is set

12. Problems witch wgetch ( curses ) I used keypad(TRUE) !

13. Q: Numeric Keypad Control Code Problem ?