home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / PB_122.ZIP / SDK.ZIP / ALTJ.C next >
C/C++ Source or Header  |  1992-03-28  |  391b  |  26 lines

  1. #include "pb_sdk.h"
  2.  
  3. int
  4. handler(KEY k)
  5. {
  6.  if(k == KEY_ALTG)
  7.    {
  8.     printf("\n\7Hang on \3%s\7, I'm shelling to DOS...",UserFirstName);
  9.     MenuFunction(MENU_SHELL,"*!*N*Q*C*Y");
  10.     puts("\6I'm back!\7");
  11.  
  12.     return HANDLED;
  13.    }
  14.  
  15.  return NOT_HANDLED;
  16. }
  17.  
  18. main()
  19. {
  20.  InstallHandler(HANDLER_SYSOPKEY,handler);
  21.  
  22.  ExitTSR();
  23.  
  24.  return 0;  /* Keeps compiler happy */
  25. }
  26.