ref: e53ff42cf7e87949489712c0f40c1c7373874c18
parent: 30999a82bb72c1870a800bcb1fc7b4558dd93b8c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jul 1 19:11:11 EDT 2021
devmouse: default to no blanking instead of 30 minute blank timeout
--- a/sys/man/3/mouse
+++ b/sys/man/3/mouse
@@ -156,15 +156,17 @@
.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
--- a/sys/src/9/port/devmouse.c
+++ b/sys/src/9/port/devmouse.c
@@ -98,7 +98,7 @@
static int mouseswap;
static int scrollswap;
static ulong mousetime;
-static ulong blanktime = 30; /* in minutes; a half hour */
+static ulong blanktime;
extern Memimage* gscreen;
--
⑨