Changeset 5
- Timestamp:
- May 13, 2016, 11:55:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
heimdal/trunk/lib/hcrypto/ui.c
r1 r5 43 43 #include <roken.h> 44 44 45 #ifdef __OS2__ 46 #define HAVE_CONIO_H 47 #endif 48 45 49 #include <ui.h> 46 50 #ifdef HAVE_CONIO_H … … 71 75 void (*oldsigintr)(int); 72 76 77 #ifndef __OS2__ 73 78 _cprintf("%s%s", preprompt, prompt); 79 #else 80 fprintf(stderr, "%s%s", preprompt, prompt); 81 fflush(stderr); 82 #endif 74 83 75 84 oldsigintr = signal(SIGINT, intr); … … 77 86 p = buf; 78 87 while(intr_flag == 0){ 88 #ifndef __OS2__ 79 89 c = ((echo)? _getche(): _getch()); 90 #else 91 c = ((echo)? getche(): getch()); 92 #endif 80 93 if(c == '\n' || c == '\r') 81 94 break;
Note:
See TracChangeset
for help on using the changeset viewer.