syscons.c (7d4e8b5df89420280a7764054173252052600b13) | syscons.c (7aa4389a6c7429f679ba5d0348c4251242ed4702) |
---|---|
1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 2942 unchanged lines hidden (view full) --- 2951 else 2952 break; 2953 } 2954 2955 /* make screensaver happy */ 2956 if (!(c & RELKEY)) 2957 sc_touch_scrn_saver(); 2958 | 1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 2942 unchanged lines hidden (view full) --- 2951 else 2952 break; 2953 } 2954 2955 /* make screensaver happy */ 2956 if (!(c & RELKEY)) 2957 sc_touch_scrn_saver(); 2958 |
2959 /* do the /dev/random device a favour */ | |
2960 if (!(flags & SCGETC_CN)) | 2959 if (!(flags & SCGETC_CN)) |
2961 random_harvest((u_int64_t)c, 1, 0, RANDOM_KEYBOARD); | 2960 random_harvest(&c, sizeof(c), 1, 0, RANDOM_KEYBOARD); |
2962 2963 if (scp->kbd_mode != K_XLATE) 2964 return KEYCHAR(c); 2965 2966 /* if scroll-lock pressed allow history browsing */ 2967 if (!ISGRAPHSC(scp) && scp->history && scp->status & SLKED) { 2968 2969 scp->status &= ~CURSOR_ENABLED; --- 427 unchanged lines hidden --- | 2961 2962 if (scp->kbd_mode != K_XLATE) 2963 return KEYCHAR(c); 2964 2965 /* if scroll-lock pressed allow history browsing */ 2966 if (!ISGRAPHSC(scp) && scp->history && scp->status & SLKED) { 2967 2968 scp->status &= ~CURSOR_ENABLED; --- 427 unchanged lines hidden --- |