Scrollback buffer works with Shift held down
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 23 Apr 2009 00:17:05 +0000 (17:17 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 23 Apr 2009 00:17:05 +0000 (17:17 -0700)
kern/console.c

index ccfeaa8..d0aa7a1 100644 (file)
@@ -429,7 +429,8 @@ kbd_proc_data(void)
                return 0;
        }
 
-       if(crt_scrolled) {
+       // On keypress other than SHIFT, reset if we were scrolled
+       if(crt_scrolled && (!(shift & SHIFT))) {
                crt_scrolled = FALSE;
                reset_screen();
        }