bin/csh/file.c
/*
 * Move back to beginning of current line
 */
Move back to beginning of current line
Move back to beginning of current line
static void
back_to_col_1()
{
    struct termios tty, tty_normal;
    sigset_t sigset, osigset;
    sigemptyset(&sigset);
    sigaddset(&sigset, SIGINT);
    sigprocmask(SIG_BLOCK, &sigset, &osigset);
    (void) tcgetattr(SHOUT, &tty);
    tty_normal = tty;
    tty.c_iflag &= ~INLCR;
    tty.c_oflag &= ~ONLCR;
    (void) tcsetattr(SHOUT, TCSANOW, &tty);
    (void) write(SHOUT, "\r", 1);
    (void) tcsetattr(SHOUT, TCSANOW, &tty_normal);
    sigprocmask(SIG_SETMASK, &osigset, NULL);
}
static void back_to_col_1 ( ) { struct termios tty , tty_normal ; sigset_t sigset , osigset ; sigemptyset ( & sigset ) ; sigaddset ( & sigset , SIGINT ) ; sigprocmask ( SIG_BLOCK , & sigset , & osigset ) ; ( void ) tcgetattr ( SHOUT , & tty ) ; tty_normal = tty ; tty . c_iflag &= ~ INLCR ; tty . c_oflag &= ~ ONLCR ; ( void ) tcsetattr ( SHOUT , TCSANOW , & tty ) ; ( void ) write ( SHOUT , " \r " , 1 ) ; ( void ) tcsetattr ( SHOUT , TCSANOW , & tty_normal ) ; sigprocmask ( SIG_SETMASK , & osigset , NULL ) ; }
Move back to beginning of current line
Move back to beginning of current line