Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, When I type a long command the prompt makes a carriage return but no new line. The display is screwed because the following characters override the beginning of the ...
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Location
    Lausanne - Switzerland
    Posts
    6

    Bash limited display with long commands

    Hello,

    When I type a long command the prompt makes a carriage return but no new line. The display is screwed because the following characters override the beginning of the command.

    The command is right executed. This is a display problem.

    This problem happens when I reach the 90th character of the line. However I'm using an ssh connection (windowed in gnome-terminal). So the maximum length of the line should only be limited by the window's width itself.


  2. #2
    Just Joined!
    Join Date
    Dec 2004
    Location
    Lausanne - Switzerland
    Posts
    6

    resolved

    The command
    shopt -s checkwinsize
    makes the deal. ( updates set COLUMNS and LINES after each command).

    But the command was already in my bashrc... I just logged out and logged in again.

    I don't know why it did not work this time.

Posting Permissions

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