From f2497320c68978fb4c25226966c11f115cb88e10 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 15 Sep 2020 19:09:00 +0200 Subject: config: add mouse.alternate-scroll-mode option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option controls the initial state of the Alternate Scroll Mode, and defaults to ‘enabled’. --- doc/foot.ini.5.scd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc') diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 30c36b51..4513de05 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -143,6 +143,24 @@ applications can change these at runtime. *hide-when-typing* Boolean. When enabled, the mouse cursor is hidden while typing. +*alternate-scroll-mode* + Boolean. This option controls the initial value for the _alternate + scroll mode_. When this mode is enabled, mouse scroll events are + translated to _up_/_down_ key events when displaying the alternate + screen. + + This lets you scroll with the mouse in e.g. pagers (like _less_) + without enabling native mouse support in them. + + Alternate scrolling is *not* used if the application enables + native mouse support. + + This option can be modified by applications at run-time using the + escape sequences *CSI ? 1007 h* (enable) and *CSI ? 1007 l` + (disable). + + Default: _yes_. + # SECTION: colors -- cgit v1.3