We are running cygwin v1.5.10-3 downloaded from ftp://sources-redhat.mirror.redwire.net logging in from a PC running Windows XP/2000 to an HP-UX 11.0 CDE.
We have problem with the keypad when running older applications like netscape 4.8 and third-party older apps. The keypad, with or without Num Lock key on, does not work--numbers, arrow keys, Pg Up, etc. do not function. With the newer apps that use OpenGL, we do not see the keypad problem. I had done the following to hard code each key on the keypad. But the result is that this overrides the "Num Lock" key functionality--the numbers on the keypad are working, with or without Num Lock depressed. The arrow keys and Pg Up, etc., keys will still give me the hardcoded numbers when Num Lock is not on. How do I make the keys on the keypad work as they should, with or without Num Lock depressed, for the older apps? - This is what I did on the HP-UX 11.0 side: 1. Create the file /etc/dt/colnfig/Xsession.d/0050.disable_xkb # vi /etc/dt/colnfig/Xsession.d/0050.disable_xkb #!/usr/bin/ksh ##################################################################### ### File: 0050.disable_xkb ### ### Purpose: disable the XKEYBOARD extension in all R6 ### client software. ##################################################################### export XKB_DISABLE=1 # chmod 755 /etc/dt/colnfig/Xsession.d/0050.disable_xkb 2. Put in the user's $HOME/.dtprofile the following line: xmodmap /home/vlauems/xmodmap.ansoft8.5.hpux 3. As a regular user, create the file /home/vlauems/xmodmap.ansoft8.5.hpux % vi /home/vicky/xmodmap.ansoft8.5.hpux keysym KP_End = 1 keysym KP_Down = 2 keysym KP_Next = 3 keysym KP_Left = 4 keysym KP_Begin = 5 keysym KP_Right = 6 keysym KP_Home = 7 keysym KP_Up = 8 keysym KP_Prior = 9 keysym KP_Insert = 0 - On the PC side, this is the .bat file I used to start xdmcp (perhaps there's a parameter in XWin to enable the keypad that I missed???): @echo off REM CYGWIN VERSION NUMBER AND DATE REM Build Date: 2004-05-25 22:07 REM DL Site: ftp%3a%2f%2fsources-redhat.mirror.redwire.net%2fpub%2fsources.redhat.com%2fcygwin REM DL Date: 08/09/04 REM Version: cygwin-1.5.10-3.tar.bz2 SET DISPLAY=127.0.0.1:0.0 REM REM Change REMOTE_HOST to the IP address or hostname of your remote host, REM unless your remote host happens to have the address 10.0.0.1. REM SET REMOTE_HOST=campo REM REM The path in the CYGWIN_ROOT environment variable assignment assume REM that Cygwin is installed in a directory called 'cygwin' in the root REM directory of the current drive. You will only need to modify REM CYGWIN_ROOT if you have installed Cygwin in another directory. For REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need REM to change \cygwin to \foo\bar\baz\cygwin. REM REM This batch file will almost always be run from the same drive (and REM directory) as the drive that contains Cygwin/X, therefore you will REM not need to add a drive letter to CYGWIN_ROOT. For example, you do REM not need to change \cygwin to c:\cygwin if you are running this REM batch file from the C drive. REM SET CYGWIN_ROOT=c:\cygwin SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH% SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB SET XNLSPATH=/usr/X11R6/lib/X11/locale REM REM Cleanup after last run. REM if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0 del %CYGWIN_ROOT%\tmp\.X11-unix\X0 :CLEANUP-FINISH if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix REM REM Startup the X Server and attempt to connect to a remote XDM server. REM REM The error "Fatal server error: could not open default font 'fixed'" is REM caused by using a DOS mode mount for the mount that the Cygwin/X REM fonts are accessed through. See the Cygwin/X FAQ for more REM information: REM http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof REM if "%OS%" == "Windows_NT" goto OS_NT REM Windows 95/98/Me echo startxdmcp.bat - Starting on Windows 95/98/Me goto STARTUP :OS_NT REM Windows NT/2000/XP echo startxdmcp.bat - Starting on Windows NT/2000/XP :STARTUP REM REM A few examples of initiating an XDMCP connection are REM given below. The default is to connect to a specified host REM with -query. The second example connects to the first REM responding host with -broadcast. The third example shows REM how to connect to the font server of a remote host. REM REM See startxwin.bat for a description of the most typical REM command-line parameters for XWin.exe. REM REM Connect to a specified machine. REM run XWin -query %REMOTE_HOST% -nodecoration -lesspointer REM Connect to the first XDM machine to respond. REM run XWin -broadcast -nodecoration -lesspointer REM Connect to a specified machine and a specified font server. REM run XWin -query %REMOTE_HOST% -nodecoration -lesspointer -fp tcp/%REMOTE_HOST%:7100 REM SOLARIS PORT IS 7100; HP-UX PORT IS 7000 run XWin -indirect %REMOTE_HOST% -nodecoration -lesspointer -clipboard -fp tcp/%REMOTE_HOST%:7000 Thanks for your help. Vicky Lau [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com