From: Hans-Bernhard B. <br...@us...> - 2005-04-29 18:44:39
|
Update of /cvsroot/cscope/cscope/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22014/src Modified Files: command.c help.c Log Message: New hotkey Ctrl-A duplicating function of Ctrl-Y in curses interface. Index: command.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/command.c,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** command.c 14 Mar 2005 17:24:47 -0000 1.27 --- command.c 29 Apr 2005 18:44:31 -0000 1.28 *************** *** 251,255 **** resetcmd(); } ! return(NO); case KEY_LL: /* go to last input field */ --- 251,255 ---- resetcmd(); } ! return(NO); case KEY_LL: /* go to last input field */ *************** *** 459,462 **** --- 459,463 ---- break; + case ctrl('A'): /* HBB 20050428: added alt. keymapping */ case ctrl('Y'): /* repeat last pattern */ if (*Pattern != '\0') { Index: help.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/help.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** help.c 13 Mar 2002 18:54:40 -0000 1.5 --- help.c 29 Apr 2005 18:44:31 -0000 1.6 *************** *** 66,71 **** *tp++ = "by pointing with the mouse and clicking button 1.\n"; *tp++ = "\nYou can either use the button 2 menu or these single-character commands:\n\n"; ! } ! else { *tp++ = "Press the RETURN key repeatedly to move to the desired input field, type the\n"; *tp++ = "pattern to search for, and then press the RETURN key. For the first 4 and\n"; --- 66,70 ---- *tp++ = "by pointing with the mouse and clicking button 1.\n"; *tp++ = "\nYou can either use the button 2 menu or these single-character commands:\n\n"; ! } else { *tp++ = "Press the RETURN key repeatedly to move to the desired input field, type the\n"; *tp++ = "pattern to search for, and then press the RETURN key. For the first 4 and\n"; *************** *** 91,95 **** *tp++ = "^P\t\tMove to the previous input field.\n"; } ! *tp++ = "^Y\t\tSearch with the last pattern typed.\n"; *tp++ = "^B\t\tRecall previous input field and search pattern.\n"; *tp++ = "^F\t\tRecall next input field and search pattern.\n"; --- 90,94 ---- *tp++ = "^P\t\tMove to the previous input field.\n"; } ! *tp++ = "^Y / ^A\t\tSearch with the last pattern typed.\n"; *tp++ = "^B\t\tRecall previous input field and search pattern.\n"; *tp++ = "^F\t\tRecall next input field and search pattern.\n"; *************** *** 105,110 **** *tp++ = "\nNote: If the first character of the pattern you want to search for matches\n"; *tp++ = "a command, type a \\ character first.\n"; ! } ! else { if (mouse) { *tp++ = "Point with the mouse and click button 1 to mark or unmark the line to be\n"; --- 104,109 ---- *tp++ = "\nNote: If the first character of the pattern you want to search for matches\n"; *tp++ = "a command, type a \\ character first.\n"; ! *tp++ = "Note: Some ctrl keys may be occupied by your terminal configuration.\n"; ! } else { if (mouse) { *tp++ = "Point with the mouse and click button 1 to mark or unmark the line to be\n"; |