Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    xterm wraps over the same line when typing!


    Hi,
    I've got a strange problem with xterm, Aterm and gnome-terminal... when I type and the text goes beyond the end of the line, it wraps around but comes back on to the same line instead of going t the line below.

    It becomes very confusing because it looks as though you are typing over what you have already typed, but it isn't actually doing that, if you press back enough you get back to the original first line and it's fine. Commands go through as normal, it's just the screen that is a bit messed up.

    Anybody know why this is or how to fix it?

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,901
    Very unusual problem.
    Not a fix, but a way of sidestepping the problem,
    Can't you just hit ENTER to manually bring it to the next line.
    Like what had to be done with the old paper typewriters.
    If you want to learn more about linux take a linux journey
    https://linuxjourney.com/
    Use CODE tags when posting output of commands. Thank you.
    https://www.linuxcounter.net/cert/608410.png

  3. #3
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    I am assuming your shell here is bash. In /etc/inputrc you need a line like this:

    set horizontal-scroll-mode Off

    If it's already there and says On, then change it to Off. If this doesn't work, then perhaps you have older versions of bash and/or readline on your system which can cause wrapping troubles.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Hmm, that's happened to me too when emerging/pacman'ing lots of packages at the same time (= long command). Thanks valan I'll try it.

  6. #5
    Just Joined!
    Join Date
    Jul 2005
    Location
    look out your window
    Posts
    72
    this happens to me if i run nano and then, while still editing, resize the current window...then exit nano.
    it is quite annoying and i usually just close the window

  7. #6

    Thumbs up Possible solution

    Quote Originally Posted by humbletech99
    Hi,
    I've got a strange problem with xterm, Aterm and gnome-terminal... when I type and the text goes beyond the end of the line, it wraps around but comes back on to the same line instead of going t the line below.

    Anybody know why this is or how to fix it?
    I've had this problem on and off for years when accessing remote machines with ssh. I did a little digging tonight and found this thread. https://www.redhat.com/archives/fedo.../msg06696.html

    Please try:
    export PS1='${HOSTNAME}:${PWD}>'
    clear
    reset

    Worked for me(TM)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •