if (newmode == SLAVEMODE) { start_screen(call); start_slave_mode(wintab, win_in, win_out); } break;
int change_mode(int oldmode, int newmode, wint * wintab, t_win * win_in, t_win * win_out, char *call[]){    switch (oldmode) {    case RAWMODE:	if (newmode == TALKMODE) {	    start_screen(call);	    start_talk_mode(wintab, win_in, win_out);	}	if (newmode == SLAVEMODE) {	    start_screen(call);	    start_slave_mode(wintab, win_in, win_out);	}	break;    case TALKMODE:	if (newmode == RAWMODE) {	    wclear(win_out->ptr);	    wrefresh(win_out->ptr);	    wclear(win_in->ptr);	    wrefresh(win_in->ptr);	    wintab->next = 0;	    endwin();	}	if (newmode == SLAVEMODE) {	    delwin(win_out->ptr);	    delwin(win_in->ptr);	    wintab->next = 0;	    start_slave_mode(wintab, win_in, win_out);	}	break;    case SLAVEMODE:	if (newmode == RAWMODE) {	    wclear(win_out->ptr);	    wrefresh(win_out->ptr);	    wintab->next = 0;	    endwin();	}	if (newmode == TALKMODE) {	    delwin(win_out->ptr);	    wintab->next = 0;	    start_talk_mode(wintab, win_in, win_out);	}	break;    }    return newmode;}