Beispiel #1
0
int cmd_history(char *param)
{
	if(param && *param) {
		unsigned long x;

		x = atol(param);
		if(x < 256 || x > 32768U) {
			error_history_size(param);
			return 1;
		}
		puts("HISTORY: To change to size of the history is not implemented, yet");
		return 0;
	}

	return ctxtView(CTXT_TAG_HISTORY, TEXT_HISTORY_EMPTY);
}
Beispiel #2
0
int cmd_history(char *param)
{
	if(param && *param) {
		unsigned long x;

		x = atol(param);
		if(x < 10 || x > 32768U) {
			error_history_size(param);
			return 1;
		}
		CTXT_INFO(CTXT_TAG_HISTORY, sizemax) = (unsigned)x;
		ctxtCreate();
		return 0;
	}

	return ctxtView(CTXT_TAG_HISTORY, TEXT_HISTORY_EMPTY);
}
Beispiel #3
0
int cmd_dispArgs(char *param)
{
	return ctxtView(CTXT_TAG_ARG, TEXT_ARG_CTXT_EMPTY);
}
Beispiel #4
0
int cmd_dirs (char * param) {
    (void)param;
    return ctxtView (CTXT_TAG_DIRSTACK, TEXT_DIRSTACK_EMPTY);
}