xloc = 0;
xcur = 0;
void writes(vWindow win, vString s) {    FontMetrics m = win.getFontMetrics();    byte[] b = s.getBytes();    int i, j;    for (i = j = 0; j < b.length; j++) {	char c = (char) b[j];	switch (c) {	    case '\n':		wchars(win, m, b, i, j);		newline(win);		break;	    case '\r':		wchars(win, m, b, i, j);		xloc = 0;		break;	    case '\t':		wchars(win, m, b, i, j);		int tabw = 8 * win.Fwidth();		xloc = xloc - (xloc % tabw) + tabw;		break;	    default:		continue;	}	i = j + 1;    }    wchars(win, m, b, i, j);}