if (mode & RAWMODE) { write(STDOUT_FILENO, buf, bytes); return; } for (cnt = 0; cnt < bytes; cnt++) { switch (buf[cnt]) { case 201: case 218: waddch(win_in->ptr, ACS_ULCORNER); break; case 187: case 191: waddch(win_in->ptr, ACS_URCORNER); break; case 200: case 192: waddch(win_in->ptr, ACS_LLCORNER); break; case 188: case 217: waddch(win_in->ptr, ACS_LRCORNER); break; case 204: case 195: waddch(win_in->ptr, ACS_LTEE); break; case 185: case 180: waddch(win_in->ptr, ACS_RTEE); break; case 203: case 194: waddch(win_in->ptr, ACS_TTEE); break; case 202: case 193: waddch(win_in->ptr, ACS_BTEE); break; case 205: case 196: waddch(win_in->ptr, ACS_HLINE); break; case 186: case 179: waddch(win_in->ptr, ACS_VLINE); break; case 129: waddch(win_in->ptr, 252);	 break; case 132: waddch(win_in->ptr, 228);	 break; case 142: waddch(win_in->ptr, 196);	 break; case 148: waddch(win_in->ptr, 246);	 break; case 153: waddch(win_in->ptr, 214);	 break; case 154: waddch(win_in->ptr, 220);	 break; case 225: waddch(win_in->ptr, 223);	 break; default: { if (buf[cnt] > 127) waddch(win_in->ptr, '.'); else waddch(win_in->ptr, buf[cnt]); }
if (mode & RAWMODE) { write(STDOUT_FILENO, buf, bytes); return;
void writeincom(int mode, t_win * win_in, unsigned char buf[], int bytes){    int cnt;    if (mode & RAWMODE) {	write(STDOUT_FILENO, buf, bytes);	return;    }    for (cnt = 0; cnt < bytes; cnt++) {	switch (buf[cnt]) {	case 201:	case 218:	    waddch(win_in->ptr, ACS_ULCORNER);	    break;	case 187:	case 191:	    waddch(win_in->ptr, ACS_URCORNER);	    break;	case 200:	case 192:	    waddch(win_in->ptr, ACS_LLCORNER);	    break;	case 188:	case 217:	    waddch(win_in->ptr, ACS_LRCORNER);	    break;	case 204:	case 195:	    waddch(win_in->ptr, ACS_LTEE);	    break;	case 185:	case 180:	    waddch(win_in->ptr, ACS_RTEE);	    break;	case 203:	case 194:	    waddch(win_in->ptr, ACS_TTEE);	    break;	case 202:	case 193:	    waddch(win_in->ptr, ACS_BTEE);	    break;	case 205:	case 196:	    waddch(win_in->ptr, ACS_HLINE);	    break;	case 186:	case 179:	    waddch(win_in->ptr, ACS_VLINE);	    break;	case 129:	    waddch(win_in->ptr, 252);	/*u umlaut */	    break;	case 132:	    waddch(win_in->ptr, 228);	/*a umlaut */	    break;	case 142:	    waddch(win_in->ptr, 196);	/*A umlaut */	    break;	case 148:	    waddch(win_in->ptr, 246);	/*o umlaut */	    break;	case 153:	    waddch(win_in->ptr, 214);	/*O umlaut */	    break;	case 154:	    waddch(win_in->ptr, 220);	/*U umlaut */	    break;	case 225:	    waddch(win_in->ptr, 223);	/*sz */	    break;	default:	    {		if (buf[cnt] > 127)		    waddch(win_in->ptr, '.');		else		    waddch(win_in->ptr, buf[cnt]);	    }	}    }/*      waddnstr(win_in->ptr, buf, bytes); */    wrefresh(win_in->ptr);    return;}