Path: utzoo!utgpu!water!watmath!clyde!feg
From: feg@clyde.ATT.COM (Forrest Gehrke)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Help w/ F-keys
Message-ID: <31501@clyde.ATT.COM>
Date: 17 Aug 88 13:47:21 GMT
References: <13.23016A13@rubbs1.FIDONET.ORG> <5602@ecsvax.uncecs.edu>
Organization: AT&T Bell Labs, Whippany NJ
Lines: 21

In article <5602@ecsvax.uncecs.edu>, uchuck@ecsvax.uncecs.edu (Charles Bennett) writes:
> In article <13.23016A13@rubbs1.FIDONET.ORG>, Mark.Medici@rubbs1.FIDONET.ORG (Mark Medici) writes:
> > I am looking for the proceedure to reprogram the IBM PC/AT enhanced
> > keyboard function keys to run frequently used commands under DOS 3.3.
> 
.> The command sequence for ANSI.SYS is as follows:
.>         ESC[#;#;"string";#p
.> So your examples would look like this:
.>  ESC[0;122;'CLR.BAT';13p
.>  ESC[0;123;'HELP.BAT';13p
.>  ESC[0;135;'HOME.BAT';13p
.>  ESC[0;136;'MENU.EXE';13p


One more thing (I had to learn it the hard way): 

Don't try to execute these statements with echo off.  
Ansi (nansi, fansi, or whatever) won't 'see' them and 
therefore won't act on them.

   Forrest Gehrke