diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-01 23:11:11 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-01 23:11:11 +0000 |
commit | c848ca62673689df20e7fef74d1d5180f37fcea6 (patch) | |
tree | a13db43d04e29585bc6b78fdd36462d6b5d84e67 | |
parent | 2929a3bf67225b16284fd21bb0298bddeac142d1 (diff) | |
download | plan9front-c848ca62673689df20e7fef74d1d5180f37fcea6.tar.xz |
devmouse: default to no blanking instead of 30 minute blank timeout
-rw-r--r-- | sys/man/3/mouse | 8 | ||||
-rw-r--r-- | sys/src/9/port/devmouse.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/man/3/mouse b/sys/man/3/mouse index 57772eab9..dbc46cd6b 100644 --- a/sys/man/3/mouse +++ b/sys/man/3/mouse @@ -156,15 +156,17 @@ to its default state. .TP .B blank blanks the screen. -The screen also blanks after 30 minutes of inactivity. +The screen also blanks after +.I blanktime +minutes of inactivity. The screen can be unblanked by moving the mouse. .TP .BI blanktime " minutes" sets the timeout before the -screen blanks; the default is 30 minutes. +screen blanks. If .I minutes -is zero, blanking is disabled. +is zero, blanking is disabled (this is the default). .TP .B twitch unblanks the screen and resets the idle timeout as if the diff --git a/sys/src/9/port/devmouse.c b/sys/src/9/port/devmouse.c index cec16c753..d09d6f7d5 100644 --- a/sys/src/9/port/devmouse.c +++ b/sys/src/9/port/devmouse.c @@ -98,7 +98,7 @@ static uchar buttonmap[8] = { static int mouseswap; static int scrollswap; static ulong mousetime; -static ulong blanktime = 30; /* in minutes; a half hour */ +static ulong blanktime; extern Memimage* gscreen; |