English

Problem: &SETKEY command does not assign function keys

Description

SML's &SETKEY command does not allow any function key to be set. Another common problem is that &SETKEY does not work if used in a compiled SML.

Cause

ANSI.SYS is either not present in the CONFIG.SYS file, or it is not getting
recognized.

Solution or Workaround

Make sure that the following line or its equivalent is present in the CONFIG.SYS file:

Code:
DEVICE=C:\DOS\ANSI.SYS


If the SML is to be compiled, use the following syntax to use the &SETKEY function within a compiled SML:

Code:
&system "&setkey f1 commands &cr