[ale] line wrapping in terminal
Michael D. Hirsch
mhirsch at nubridges.com
Mon Oct 7 09:58:55 EDT 2002
On Monday 07 October 2002 09:51 am, John Wells wrote:
> Danny,
>
> It seems you were on the right track. While pdksh's behavior doesn't
> seem to be affected by modifying inputrc, I was looking through the
> bash man page and ran across the "set -o vi". I had no idea you
> could change bash's editing mode to vi!
>
> So, I'm trying bash out...I like the whole readline concept.
> However, when playing around with inputrc to modify behavior, it
> doesn't seem to be setting everything correctly. To test
> horizontal-scroll-mode, I set it in both /etc/inputrc and ~/.inputrc
> to on, but it still seems to be off. I've exited from X and kill all
> shells and relogged in...still the same behavior.
>
> However, I can do:
> echo "set horizontal-scroll-mode on" > /tmp/myinput.$$
> bind -f /tmp/myinput.$$
>
> and it works. Am I missing something here? Shouldn't readline
> behave according to the settings in either /etc/inputrc or
> ~/.inputrc?
I used to use a distribution, I think one of the RH 6.x series, that I
needed to "unset INPUTRC" on it in order to get it to use ~/.inputrc.
So you might check whether it is set on your system.
--Michael
> Thanks for all the help!
>
> John
>
> John Wells said:
> > Ah.
> >
> > In that case, I'm using pdksh. I'm betting the same applies. I'll
> > take a look at readline. Thanks!
> >
> > John
> >
> > Danny Cox said:
> >> John,
> >>
> >> On Mon, 2002-10-07 at 00:23, John Wells wrote:
> >>> gnome-terminal has this nasty habit of wrapping lines, truncating
> >>> or whatever you'd call it. If you type a line that's fairly long
> >>> (I think approx. 78 chars including prompt), it will blank the
> >>> line, add a little "<" character at the end to let you know
> >>> you've wrapped, and then start displaying text at the beginning
> >>> of the line.
> >>
> >> Actually, that sounds like bash is doing that, not gnome or the
> >> terminal emulator. There's a setting in the readline stuff.
> >> Check out the readline docs for more info. Sorry I can't help
> >> more off the top of my head, but this should at least get you into
> >> the right neighborhood.
> >>
> >> --
> >> kernel, n.: A part of an operating system that preserves the
> >> medieval traditions of sorcery and black art.
> >>
> >> Danny
> >
> > ---
> > This message has been sent through the ALE general discussion list.
> > See http://www.ale.org/mailing-lists.shtml for more info. Problems
> > should be sent to listmaster at ale dot org.
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems
> should be sent to listmaster at ale dot org.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list