l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:02

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] the last straw... xterm or shell issue!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] the last straw... xterm or shell issue!

  • Subject: Re: [vox-tech] the last straw... xterm or shell issue!
  • From: Chuck Polisher <cpoMAPSlish@ns.net>
  • Date: Sat, 10 Mar 2001 02:21:59 -0800
  • References: 200103100006.f2A06mm12708@sonic.net

William Kendrick wrote:
> Ever since I started using this Debian box here at work, I've had
> an issue that I attributed to gnome-terminal, which is the xterm-ish
> thing I run under X.
> Well, I decided to test it, and discovered the issue is actually the
> shell's fault.
> Here's the problem, if I type more than a line's length of text, while
> the text does wrap to the left, it does NOT go a line down.
> So, for example, if I wanted to do this:
>   atari~> mv some_file_with_a_really_long_name.txt /some/really/long/and/involv
>   ed/path/to/another/directory/
> It visually APPEARS like this:
>   ed/path/to/another/directory/eally_long_name.txt /some/really/long/and/involv
> >:^(
> It does this not just in gnome-terminal, but also from the virtual
> consoles.
> I'm running GNU bash, version 2.03.0(1)-release (i386-pc-linux-gnu)
> under Debian 2.2.  Is there some ENV-var I can tweak to make it work _right?_
> Thanks!
> -bill!

Search the Bash-Prompt-HOWTO for the env vars PS1, PS2. From the man page:

       PS2    The value of this parameter is expanded and used as
              the secondary prompt string.  The  default  is  ``>

I think something like export PS2='\n> ' will do what you want,
but only if you break long lines with a \, so maybe this is a 

       setterm -linewrap on
       setterm -term linux

type of thing. Hmmmm, those don't reproduce the behavior on
_my_ bash xterm. It's prolly something set from within debian's
default .bashrc somewhere, though.

Chuck Polisher

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.