xterm alternate screen - alternateScroll - pageup/pagedown

Thomas Dickey dickey at his.com
Sun May 7 13:45:38 UTC 2023


On Thu, May 04, 2023 at 09:28:36PM -0400, Dennis Nezic wrote:
> In alternate screens, with alternateScroll mode, I wonder if it'd be more
> useful to send Prior / Next (PageUp / PageDown) signals instead of Up / Down
> when scrolling with a mouse/touchpad?  Many apps (like irssi) use Up/Down to
> navigate through their command lines, whereas PageUp/PageDown seems a bit
> more universally understood.

That (choice of escape sequence) could be made configurable,
but just changing it to pageup/pagedown would aggravate a lot of people.

The same would also apply if one used a parameter for the up/down escape
sequences, e.g.,

	\033[5B

rather than

	\033[B
	\033[B
	\033[B
	\033[B
	\033[B

because some applications would mishandle it.

> By the way, how can I get these alternateScroll events to include Shift- or
> Ctrl- modifiers?  Currently they're being ignored.

The key-bindings are  handled via scroll-to, scroll-forw and scroll-back
actions, which are (user) configurable using the translations resources.

The amount by which it's scrolled also is configured (see the mention of
"units" in the scroll-back action).

Modifiers would be passed in the XEvent, which is ignored in these actions.
Again, providing something like that as a configurable feature is what
people expect -- most won't want it.

-- 
Thomas E. Dickey <dickey at invisible-island.net>
https://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg/attachments/20230507/47c91a89/attachment.sig>


More information about the xorg mailing list