Top «Prev(2008-04-27) Latest Next(2008-05-10)» Edit

pterjan's diary


  Bash and horizontal-scroll-mode

On my machines (Mandriva cooker, bash 3.2+upstream patches, readline 5.2+upstream patches) bash now displays the long command lines on a single line and handles scrolling.

This means I can't read all the command line without scrolling, and I can't copy it...

After some search on this topic I found a readline option called horizontal-scroll-mode which exactly does this, but is off by default (at least according to the doc).

Our packages changelog does not say anything about it and grep "horiz" in the patches or the config files does not return anything related. The upstream changelog of readline and bash also does not say anything about it...

Worse, I tried "set horizontal-scroll-mode off" in .inputrc and then in /etc/inputrc, without any effect...

Any idea on how to fix this ?

  Tip of the day: tar is now smart

As toady pointed out on IRC, you no longer need to tell tar that it needs to uncompress an archive with gzip or bzip2. So, instead of calling tar xzf on tar.gz archives and tar xjf on tar.bz2 ones, you can now call tar xf on both.

Update: To answer Beranger, this was introduced by tar 1.15 on 2004-12-29, and should be available in all recent distributions (According to Distrowatch: Mandriva since 10.2, Debian since Etch, Ubuntu since 5.10, Fedora since FC4).

Today's TSUKKOMI(Total: 3) [Add a TSUKKOMI]
  bsergean (2008-04-29 18:20)

Maybe I'm gonna say something stupid, but isn't the terminal (konsole or gnome-terminal) the one doing that, and not the shell or readline.

  Pascal (2008-04-29 18:46)

I have the same issue in gnome-terminal, rxvt, and on vt1 so I doubt they all have the issue :)

  Charles (2008-04-30 02:06)

After adding "set horizontal-scroll-mode off" to /etc/inputrc run "export INPUTRC=/etc/inputrc" and restart your shell.<br>You should now be back to the default line wrap.