Exemple #1
0
void help (void)
{
    int option;
    const char* ns = intro;
    while ((option = tolower(pscreen(ns))) != 'q') {
    	switch (option) {
	    default:
	    case 'a': ns = intro; break;
	    case 'b': ns = toggleoptions; break;
	    case 'c': ns = setoptions; break;
	    case 'd': ns = cursor; break;
	    case 'e': ns = cell; break;
	    case 'f': ns = vi; break;
	    case 'g': ns = file; break;
	    case 'h': ns = row; break;
	    case 'i': ns = range; break;
	    case 'j': ns = misc; break;
	    case 'k': ns = var; break;
	    case 'l': ns = rangef; break;
	    case 'm': ns = numericf; break;
	    case 'n': ns = stringf; break;
	    case 'o': ns = finf; break;
	    case 'p': ns = timef; break;
	}
    }
    FullUpdate++;
    move(1,0);
    clrtobot();
}
Exemple #2
0
void
help()
{
    int option;
    char **ns = intro;

    while((option = pscreen(ns)) != 'q' && option != 'Q') {
    	switch (option) {
	case 'a': case 'A': ns = intro; break;
	case 'b': case 'B': ns = toggleoptions; break;
	case 'c': case 'C': ns = setoptions; break;
	case 'd': case 'D': ns = cursor; break;
	case 'e': case 'E': ns = cell; break;
	case 'f': case 'F': ns = vi; break;
	case 'g': case 'G': ns = file; break;
	case 'h': case 'H': ns = row; break;
	case 'i': case 'I': ns = range; break;
	case 'j': case 'J': ns = misc; break;
	case 'k': case 'K': ns = var; break;
	case 'l': case 'L': ns = rangef; break;
	case 'm': case 'M': ns = numericf; break;
	case 'n': case 'N': ns = stringf; break;
	case 'o': case 'O': ns = finf; break;
	case 'p': case 'P': ns = timef; break;
	default: ns = intro; break;
	}
    }
    FullUpdate++;
    (void) move(1,0);
    (void) clrtobot();
}