void ldisc_update(int echo, int edit)
void ldisc_update(void *frontend, int echo, int edit)
void ldisc_update(int echo, int edit){    /* Update stdin read mode to reflect changes in line discipline. */    DWORD mode;    mode = ENABLE_PROCESSED_INPUT;    if (echo)	mode = mode | ENABLE_ECHO_INPUT;    else	mode = mode & ~ENABLE_ECHO_INPUT;    if (edit)	mode = mode | ENABLE_LINE_INPUT;    else	mode = mode & ~ENABLE_LINE_INPUT;    SetConsoleMode(inhandle, mode);}