this i added to make it look even MORE like csh :-) helps me figure out what command was chosen :-) (i have 10 history positions, soon to be upgraded to 20 if i can handle it :-) NOTE: You must have George's !csh patch(?) for this to work. in comm.c in process_input() after this section of code: if (*tmp == '!' && !*(tmp + 1)) strcpy(tmp, t->last_input); else if (*tmp == '!' && *(tmp + 1)) { char *commandln = (tmp + 1); int starting_pos = t->history_pos, cnt = (t->history_pos == 0 ? HISTORY_SIZE - 1 : t->history_pos - 1); skip_spaces(&commandln); for (; cnt != starting_pos; cnt--) { if (t->history[cnt] && is_abbrev(commandln, t->history[cnt])) { strcpy(tmp, t->history[cnt]); add: SEND_TO_Q(tmp, t); SEND_TO_Q("\r\n", t); this will make it even more like csh (ie print out the command sent to the input) l8r Akuma the Raging Coder +------------------------------------------------------------+ | "The poets talk about love, but what I talk about is DOOM, | | because in the end, DOOM is all that counts." - | | Alex Machine/George Stark/Stephen King, The Dark Half | | "Nothing is IMPOSSIBLE, Just IMPROBABLE" | | "Easier Said Than Done, But Better Done Than Said..." | +------------------------------------------------------------+ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST