TIP: Click on subject to list as thread! ANSI
echo: os2
to: Dan Egli
from: Jonathan de Boyne Pollard
date: 1999-10-30 09:36:17
subject: NumLock

 DE> Is there something I can tweak in the config.sys or somewhre that will
 DE> leave the numlock ON?

In theory, the /NUMON switch to the IBMKBD.SYS base device driver should do
this, although I do not know whether the option was ever fully implemented and 
if it was what FixPack it is available in.

For users of JP Software's 4OS2 and Take Command for OS/2 command
interpreters, there is a built-in KEYBD command.  To set numlock on for all
full-screen sessions, place the following in 4START.BTM:

        if %_shell% EQ 0 .and. %_ptype% EQ FS keybd /n1

To set numlock on in the PM session, create a new program object in the
Startup folder (by dragging and dropping from the Programs template) that
invokes Take Command for OS/2 with the following command line arguments in the 
parameters field:

        /c keybd /n1

For non-4OS2 users, there are various "itty-bitty" utilities that will alter
the numlock shift state for individual sessions.  The OS/2 Command Line
Utilities version 1.0 (OS2CLU01.ARJ or OS2CLU01.ZIP on your favourite files
site, including Hobbes FTP and LEO FTP) contains the 16-bit KEYLOCKS.EXE
utility, for example, which can be used to alter the state of the num, caps,
and shift locks in full-screen sessions:
        
        [c:\]keylocks /n+

The 32-bit CMD comes with a 32-bit KEYLOCKS command with a slightly more
verbose syntax:

        [c:\]keylocks NUMON

 ¯ JdeBP ®

--- FleetStreet 1.22 NR
633/260
2501/209
* Origin: JdeBP's point, using Squish (2:257/609.3)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.