ENVSIZE
getstr(term+ENVSIZE, sizeof(term)-ENVSIZE, "Terminal type too long");
char *cp = index(term+ENVSIZE, '/');