Category : OS/2 Files
Archive   : OS2NLOFF.ZIP
Filename : NLOFF.DOC

Output of file : NLOFF.DOC contained in archive : OS2NLOFF.ZIP
Documentation for NLOFF.EXE

NLOFF.EXE is an OS/2 utility to turn off the NUMLOCK key on IBM PS/2s
(and other machines that default to having it on) on the Enhanced
Keyboard. It is run as part of the boot-up procedures.

The following are quotes from Charles Petzold, direct from
Compuserve, explaining it's use, and giving me permission to compile
it and distribute it.

If you have access to Compuserve, and are interested in programming
in general, and OS/2 programming in particular, I recommend you check
out the Programming Forum in PCMagNet. It's worth the trip!

Joe Salemi


#: 3034 S2/Environments [P]
27-Jun-88 23:47:47
Sb: #3029-#Gonzo Programming
Fm: Charles Petzold [PCMAG] 72241,56
To: Harve Schiffman 72261,347

A parody? That's an interesting theory. I don't know how Ted Mirecki
feels about OS/2, but presenting a 150 line program to turn off the
Num Lock key does little to encourage potential OS/2 programmers.

What's worse is that the device driver approach is *totally*
unnecessary. To turn the Num Lock key before the Program Selector
loads, you can use this NLOFF.C program:

#define INCL_KBD

int main (int argc, char *argv[])
static KBDINFO kbst = { 10, 0x10, 0, 0, 0 } ;

KbdSetStatus (&kbst, 0) ;
spawnv (P_NOWAIT, argv[1], argv + 1) ;
return 0 ;

In your CONFIG.SYS file, change the PROTSHELL statement from:



I don't know if this qualifies as "gonzo programming" but it's
certainly a more rational approach, don't you think?


#: 3289 S2/Environments [P]
02-Jul-88 03:36:55
Sb: #3278-Gonzo Programming
Fm: Charles Petzold [PCMAG] 72241,56
To: Joe Salemi 71121,3273

I have no problem with launching NLOFF.C out into the public domain.
Put my name in the comment area on top (if it isn't there already).
Just a "Programmed by..." will do. Also, the comment field should
include directions for how to using it in CONFIG.SYS (or CONFIG.OS2
for the dual boot version!!!).

And, most importantly, the comment field should indicate that this
program is a better approach to turning off the Num Lock key at boot
time than Ted Mirecki's device driver in the July PC Tech Journal.
(Hee, hee, hee.)

  3 Responses to “Category : OS/2 Files
Archive   : OS2NLOFF.ZIP
Filename : NLOFF.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: