diff options
author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2002-04-06 06:47:23 +0000 |
---|---|---|
committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2002-04-06 06:47:23 +0000 |
commit | ba5c05f60b8d28cf8f05fb7f464ead2de79a2133 (patch) | |
tree | 9170ac82e52672e1e52fa5c24d973f44b8d62ad9 /sys/pc98 | |
parent | 58823205c4e1eaa974e95dc9b30bb7074fbc8cd6 (diff) | |
download | src-ba5c05f60b8d28cf8f05fb7f464ead2de79a2133.tar.gz src-ba5c05f60b8d28cf8f05fb7f464ead2de79a2133.zip |
Merged from sys/dev/syscons/syscons.c revisions 1.381 and 1.382.
Notes
Notes:
svn path=/head/; revision=93938
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/syscons.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index ef449d049123..9767443596a5 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -89,6 +89,7 @@ static default_attr kernel_default = { }; static int sc_console_unit = -1; +static int sc_saver_keyb_only; static scr_stat *sc_console; static struct tty *sc_console_tty; static void *kernel_console_ts; @@ -108,6 +109,10 @@ static void none_saver(sc_softc_t *sc, int blank) { } static void (*current_saver)(sc_softc_t *, int) = none_saver; #endif +SYSCTL_NODE(_hw, OID_AUTO, syscons, CTLFLAG_RD, 0, "syscons"); +SYSCTL_NODE(_hw_syscons, OID_AUTO, saver, CTLFLAG_RD, 0, "saver"); +SYSCTL_INT(_hw_syscons_saver, OID_AUTO, keybonly, CTLFLAG_RW, + &sc_saver_keyb_only, 0, "screen saver interrupted by input only"); #if !defined(SC_NO_FONT_LOADING) && defined(SC_DFLT_FONT) #include "font.h" #endif @@ -2426,7 +2431,7 @@ sc_puts(scr_stat *scp, u_char *buf, int len) { #ifdef DEV_SPLASH /* make screensaver happy */ - if (!sticky_splash && scp == scp->sc->cur_scp) + if (!sticky_splash && scp == scp->sc->cur_scp && !sc_saver_keyb_only) run_scrn_saver = FALSE; #endif |