Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/libbb/bb_askpass.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/libbb/bb_askpass.c
r2725 r3232 31 31 struct termios tio, oldtio; 32 32 33 fputs(prompt, stdout); 34 fflush_all(); 35 tcflush(fd, TCIFLUSH); 36 33 37 tcgetattr(fd, &oldtio); 34 tcflush(fd, TCIFLUSH);35 38 tio = oldtio; 36 #ifndef IUCLC 37 # define IUCLC 0 39 #if 0 40 /* Switch off UPPERCASE->lowercase conversion (never used since 198x) 41 * and XON/XOFF (why we want to mess with this??) 42 */ 43 # ifndef IUCLC 44 # define IUCLC 0 45 # endif 46 tio.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY); 38 47 #endif 39 tio.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY);40 tio.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL |TOSTOP);48 /* Switch off echo */ 49 tio.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL); 41 50 tcsetattr(fd, TCSANOW, &tio); 42 51 … … 50 59 alarm(timeout); 51 60 } 52 53 fputs(prompt, stdout);54 fflush_all();55 61 56 62 if (!passwd)
Note:
See TracChangeset
for help on using the changeset viewer.