[lug] terminal wrapping

Jason Davis mohadib at openactive.org
Thu Jan 6 13:30:52 MST 2005


On Thu, 2005-01-06 at 13:17, Ted Logan wrote:
> On Thu, 06 Jan 2005 13:09:19 -0700, Jason Davis <mohadib at openactive.org> wrote:
> >  When i ssh to my Debian box and use the terminal, text is wrapping to
> > the same line. When I type a command longer than my term is wide , the
> > command starts overwriting what I have typed on the same line ....
> > doesn't jump to the next line. How can I fix this?
> 
> I've seen similar behavior when I've included non-printing escape
> codes in my prompts (such as changing the color of the prompt or
> setting the xterm title). If you're doing something like that, include
> the non-printing codes in \[ and \] so bash knows it shouldn't count
> the charcters as part of the prompt length.
> 
> My standard prompt is something like:
> 
> \[\033]0;jaeger at hydrogen [$TTY]\007\e[32m\]\u@\h:\w\$\[\e[0m\]
> 
> which puts "jaeger at hydrogen [/dev/pts/4]" in the xterm title and
> changes the prompt color itself to green.

thanks ted , that was my problem

jd




More information about the LUG mailing list