home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
UTIL
/
fkalias.lzh
/
Readme.fkalias
< prev
Wrap
Text File
|
1994-01-04
|
1KB
|
40 lines
FKALIAS, FKLOCAL
Here are two programs that can be used on an MM/1 with windio ed. 48 to
assign key macros to the function keys.
To assign "dir -e" (with end of line character) to F3 use
fkalias 3 "dir -e\n"
This assignment is system-wide - valid for all processes and all windows. The
second parameter may contain ASCII characters and escape sequences \n \r \l \f
\t or \xhh where hh are two hex characters.
The second program, fklocal, is a test program calling a function
fklocal(fk, alias, arglen, buffnr)
which assigns a macro to a function keys locally, for the calling process and
its children. After the process dies, all subsequent processes with the same
process id will inherit the macro.
The arguments are:
fk - function key number,
alias - a C character string to be assigned,
arglen - length of this string (allows embedded zero characters),
buffnr - Get/Put buffer number. Should be different from other Get/Put buffer
numbers possibly used by the program.
See the test program for an example. It assigns "dir\n" to function key F1
using buffer 30, then it waits for any keys pressed and echoes them to the
screen. Run it, press some keys including F1, then abort.
Andrzej Kotanski
(kotanski@zeus02.desy.de) Krakow, Jan. 4, 1994