TCSADRAIN
CATCH_EINTR(err = tcsetattr(fd, TCSADRAIN, &tt));
while (tcsetattr(SLang_TT_Read_FD, TCSADRAIN, &tty) == -1 && errno == EINTR)