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   
Text File  |  1994-01-04  |  1KB  |  40 lines

  1. FKALIAS, FKLOCAL
  2.  
  3.  
  4.    Here are two programs that can be used on an MM/1 with windio ed. 48 to
  5. assign key macros to the function keys.
  6.  
  7.   To assign "dir -e" (with end of line character) to F3 use
  8.  
  9.    fkalias 3 "dir -e\n"
  10.  
  11.    This assignment is system-wide - valid for all processes and all windows. The
  12. second parameter may contain ASCII characters and escape sequences \n \r \l \f
  13. \t or \xhh where hh are two hex characters.
  14.  
  15.  
  16.    The second program, fklocal, is a test program calling a function
  17.  
  18.      fklocal(fk, alias, arglen, buffnr)
  19.  
  20. which assigns a macro to a function keys locally, for the calling process and
  21. its children. After the process dies, all subsequent processes with the same
  22. process id will inherit the macro.
  23.  
  24.    The arguments are:
  25.  
  26.    fk     - function key number,
  27.    alias  - a C character string to be assigned,
  28.    arglen - length of this string (allows embedded zero characters),
  29.    buffnr - Get/Put buffer number. Should be different from other Get/Put buffer
  30.             numbers possibly used by the program.
  31.  
  32.   See the test program for an example. It assigns "dir\n" to function key F1
  33. using buffer 30, then it waits for any keys pressed and echoes them to the
  34. screen. Run it, press some keys including F1, then abort.
  35.  
  36.  
  37.    Andrzej Kotanski
  38. (kotanski@zeus02.desy.de)                      Krakow, Jan. 4, 1994
  39.  
  40.