home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / qc_prog / chap12 / keys.c < prev    next >
Encoding:
Text File  |  1988-04-07  |  372 b   |  19 lines

  1. /* keys.c  --   The keyboard input-handling routines  */
  2. /*              for the texed editor.                 */
  3.  
  4. Edit_file()
  5. {
  6.     char ch;
  7.  
  8.     printf("\nYou are now in the editor.\n");
  9.     printf("Press 'Q' to exit back to main menu.\n");
  10.  
  11.     do
  12.         {
  13.         ch = getch();
  14.         putch(ch);
  15.         } while (ch != 'Q');
  16.  
  17.     printf("\n\n");
  18. }
  19.