bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling doesn't work in one-line terminals


From: soeren
Subject: Re: Scrolling doesn't work in one-line terminals
Date: Wed, 20 Nov 2019 09:58:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Hi,

Chet Ramey wrote:
> Have you tried enabling horizontal scrolling?

Didn't know about that option, it seems to solve the problem at hand
indeed, thanks! Is there any particular reason why it isn't enabled for
terminals of height 1 by default?

For example:

--- readline-8.0.orig/readline.c        2018-07-17 20:06:16.000000000 +0200
+++ readline-8.0/readline.c     2019-11-20 09:56:01.747705314 +0100
@@ -1211,6 +1211,10 @@ readline_initialize_everything (void)
   /* Read in the init file. */
   rl_read_init_file ((char *)NULL);
 
+  if (_rl_screenheight == 1) {
+    _rl_horizontal_scroll_mode = 1;
+  }
+
   /* XXX */
   if (_rl_horizontal_scroll_mode && _rl_term_autowrap)
     {

Cheers,
Sören



reply via email to

[Prev in Thread] Current Thread [Next in Thread]