bug-bash
[Top][All Lists]
Advanced

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

Re: set horizontal-scroll-mode off ineffective, still scrolls


From: Chet Ramey
Subject: Re: set horizontal-scroll-mode off ineffective, still scrolls
Date: Tue, 01 Apr 2003 11:24:20 -0500

> Linux mju 2.5.63 #2 Tue Mar 4 03:36:06 WET 2003 i686 unknown 
> 
> I am running above mentioned bash in a Solaris 2.6 xterm (i.e. I
> launch xterm in Solaris and then ssh to the linux box). When I
> upgraded my linux system using RedHat 7.3 an annoying misfeature
> appeared: when I have long command lines, it scrolls them horizontally
> instead of wrapping to next line. After some investigation I discovered
> that this was actually an intentional feature (I can not imagine
> who would want that to happen as it makes cutting and pasting said
> long command lines in X impossible) that for some inexplicaple
> reason defaults to on. 

It does not `default to on'.  The first place to look is ~/.inputrc or
the file named by the INPUTRC variable.   This is the readline startup
file and probably where the variable is being enabled.

> Thus I say 
> 
> $ bind 'set horizontal-scroll-mode Off'
> $ bind -v| grep horizontal-scroll-mode
> set horizontal-scroll-mode off 
> 
> Although bash claims that the horizontal scroll mode is off, in reality
> the undesireable scrolling continues to happen. I have not found out
> any way to turn this off.

Check the value of the TERM variable and the appropriate termcap
entry.  Readline needs to be able to move the cursor up and down and
likes to know whether the terminal supports autowrap.  If your
terminal type is unknown or the corresponding termcap entry is
incomplete or incorrect, readline doesn't know how to move the cursor
and forces horizontal scrolling.  The one you need to make sure about
is the `up' capability.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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