You are not logged in.

#1 2012-07-04 16:18:39

tinySpark
Member
Registered: 2012-06-09
Posts: 19

Terminal overwrites from beginning of first line

No matter which terminal I try, when I get to about the 49th character in terminal the cursor goes back to the beginning of the first line and start overwriting what's already there. Someone suggested the problem might be a badly set locale so I changed some things:

$  locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
# locale-gen

 sudo locale-gen
Generating locales...
  en_US.ISO-8859-1... done
  en_US.UTF-8... done
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.

locale.conf

LANG=en_US.UTF-8
LC_COLLATE=C

I am using systemd if that makes a difference. Anyone have any ideas? Things still work fine but it's an annoying problem.

Offline

#2 2012-07-04 16:35:47

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: Terminal overwrites from beginning of first line

On the surface, it sounds like this problem:
https://wiki.archlinux.org/index.php/Ba … dow_resize
The description talks about resizing the window but I noticed it in general when my prompt got absurdly long (from putting the cwd in it). It's a quick fix to try, at least.

Offline

#3 2012-07-04 16:53:51

tinySpark
Member
Registered: 2012-06-09
Posts: 19

Re: Terminal overwrites from beginning of first line

Looks like the problem is in my PS1 line

PS1='\e[0;31m>\e[0;33m>\e[0;32m> \e[0;37m '

If I add a /n to make a new line at the end it works fine. Does anyone know how to make it work without it?

Offline

#4 2012-07-04 17:36:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Terminal overwrites from beginning of first line


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB