Hello!
Reporting to the list about some unexpected behaviour I'm seeing in GNU
Readline 6.3: option 'horizontal-scroll-mode' seems to be always on,
even when it's verifiably turned off. I'm using said Readline version
from within Bash 4.3.30(1)-release. Bash is compiled from source, with
option '--with-installed-readline'. Here's a slightly edited GNU Screen
"hardcopy" showing what I see:
-----BEGIN HARDCOPY-----
+0:~$ ldd /usr/local/bin/bash
linux-vdso.so.1 (0x00007fff4632b000)
libreadline.so.6 => /opt/pkg/lib/libreadline.so.6 (0x00007fe0264aa000)
libhistory.so.6 => /opt/pkg/lib/libhistory.so.6 (0x00007fe0262a0000)
libtermcap.so.2 => /lib64/libtermcap.so.2 (0x00007fe02609c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe025e98000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe025ace000)
libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x00007fe025877000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe026715000)
+0:~$ !$
/usr/local/bin/bash
[...]
+0:~$ bind -V |grep scroll
horizontal-scroll-mode is set to `off'
<tal-scroll-mode is off, so if I start typing a very long
-----END HARDCOPY-----
The last line is where I'm typing, and it still scrolls when exceeding a
certain length.
I attach my inputrc files, in case you want to test the setup.
Thanks for your attention,
DN
set meta-flag On
set input-meta On
set convert-meta Off
set output-meta On
"\eOd": backward-word
"\eOc": forward-word
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line
$include /etc/inputrc
set horizontal-scroll-mode Off
set editing-mode vi
set show-mode-in-prompt on
set completion-ignore-case on
set completion-map-case on
set revert-all-at-newline on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set skip-completed-text on
set mark-directories on
set visible-stats on
set colored-stats on
set match-hidden-files off
set keymap vi-command
C-p: reverse-search-history
C-n: forward-search-history
set keymap vi-insert
C-l: clear-screen
C-p: reverse-search-history
C-n: forward-search-history
"\e[A": history-search-backward
"\e[B": history-search-forward
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline