]> code.citadel.org Git - citadel.git/commitdiff
* More keys while reading messages: Q or S same as Ctrl-C, N same as Ctrl-O.
authorMichael Hampton <io_error@uncensored.citadel.org>
Sun, 30 Dec 2001 06:20:47 +0000 (06:20 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sun, 30 Dec 2001 06:20:47 +0000 (06:20 +0000)
citadel/ChangeLog
citadel/commands.c
citadel/routines.c

index b787be26616506b468563e12cb8b0e77310adfc7..3fe50591ffc5940b437cd3b0a74a7b04827a676e 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 590.26  2001/12/30 06:20:46  error
+ * More keys while reading messages:  Q or S same as Ctrl-C, N same as Ctrl-O.
+
  Revision 590.25  2001/12/30 05:50:46  error
  * Security:  Citadel now drops privileges when called from telnetd, also
    checks to make sure you didn't set the setuid/setgid bits.  No more
@@ -3033,3 +3036,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 333d2972b1f8a559f3c2670131c1664a910819a5..9c7883fc7c6af4f6661b823e3acde1c3d45c7b6e 100644 (file)
@@ -142,6 +142,10 @@ int checkpagin(int lp, int pagin, int height)
 
        if (sigcaught) return(lp);
        thekey = was_a_key_pressed();
+       if (thekey == 'q' || thekey == 'Q' || thekey == 's' || thekey == 'S')
+               thekey = STOP_KEY;
+       if (thekey == 'n' || thekey == 'N')
+               thekey = NEXT_KEY;
        if ( (thekey == NEXT_KEY) || (thekey == STOP_KEY)) sigcaught = thekey;
        if (sigcaught) return(lp);
 
index 6f3cd2106b62dbf391fb2b161238b540025d284c..65383d9e5d292e802aa444339cbe589d1d0b0a19 100644 (file)
@@ -90,6 +90,10 @@ void hit_any_key(void) {             /* hit any key to continue */
                putc(' ',stdout);
        putc(13,stdout);
        sttybbs(1);
+       if (b == 'q' || b == 'Q' || b == 's' || b == 'S')
+               b = STOP_KEY;
+       if (b == 'n' || b == 'N')
+               b = NEXT_KEY;
        if (b==NEXT_KEY) sigcaught = SIGINT;
        if (b==STOP_KEY) sigcaught = SIGQUIT;
 }