Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/libbb/bb_askpass.c

    r2725 r3232  
    3131    struct termios tio, oldtio;
    3232
     33    fputs(prompt, stdout);
     34    fflush_all();
     35    tcflush(fd, TCIFLUSH);
     36
    3337    tcgetattr(fd, &oldtio);
    34     tcflush(fd, TCIFLUSH);
    3538    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);
    3847#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);
    4150    tcsetattr(fd, TCSANOW, &tio);
    4251
     
    5059        alarm(timeout);
    5160    }
    52 
    53     fputs(prompt, stdout);
    54     fflush_all();
    5561
    5662    if (!passwd)
Note: See TracChangeset for help on using the changeset viewer.