home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 327_01 / attr.c < prev    next >
Text File  |  1991-09-10  |  397b  |  30 lines

  1. #include "panel.h"
  2. #include "keys.h"
  3.  
  4. unsigned keys[] = {
  5.      ENTER,
  6.      ESC,
  7.      0
  8.      };
  9.  
  10. main()
  11.     {
  12.     char buf[20];
  13.  
  14.     pan_init();
  15.  
  16.     pan_resp_keys(keys);
  17.  
  18.     pan_activate("attr");
  19.  
  20.     while (pan_execute("", 1, 0) != ESC)
  21.         {
  22.         pan_get_field("attr", 1, buf);
  23.         pan_field_attr("field", 1, buf);
  24.         }
  25.  
  26.     pan_destroy();
  27.     }
  28.  
  29.  
  30.