Can anybody give me some hints about how to
convince
bash to behave the same?
Not sure this answers your question...
Well, you could either just type the command, filling several lines. Or you could end each line with a \ to continue on the next.
Lars
First thank you very much for your answer. Alas, as you already guessed, this doesn't address my problem. Let me try to explain it again. Long command lines are supposed to be scrolled by bash. That is, when your cursor reaches the very right-hand side of the window, bash should continue the command on the next line. In my case bash doesn't behave like this and I have no ideea why.
Val
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
valentin antonescu wrote:
cursor reaches the very right-hand side of the window, bash should continue the command on the next line. In my case bash doesn't behave like this and I have no ideea why.
I guess bash reacts to what it understands about the capabilities of the terminal you are using. In konsole I see
$ echo $TERM xterm
also there are various settings in the konsole 'settings' menu about terminal emulations. Maybe fiddle with the equivalent in the Gnome console app. If you have KDE installed, maybe give konsole a try (it'll work under Gnome). What does bash do in the Ctrl-Alt-F1 virtual consoles?
-Andy
valentin antonescu wrote:
cursor reaches the very right-hand side of the window, bash should continue the command on the next line. In my case bash doesn't behave like this and I have no ideea why.
I guess bash reacts to what it understands about the capabilities of the terminal you are using. In konsole I see
$ echo $TERM xterm
also there are various settings in the konsole 'settings' menu about terminal emulations. Maybe fiddle with the equivalent in the Gnome console app. If you have KDE installed, maybe give konsole a try (it'll work under Gnome). What does bash do in the Ctrl-Alt-F1 virtual consoles?
-Andy
I tried bash quickly on a system at work and it appears to be "wrapping" the lines as Valentin desires. While this message does not provide a solution, at least it seems to imply that it might be an environment issue (some setting local to that installation). That would suggest investigating .bashrc files and other user and system default environment settings.
Bash was not the default shell on this test system so I'm going to verify this behaviour on my home system where bash _is_ the default.
My brief investigation didn't turn up a specific setting that would be responsible for this in Gnome but I don't have time, here, to investigate extensively.
--R
On Thu, 2005-10-06 at 09:01 -0700, valentin antonescu wrote:
Can anybody give me some hints about how to
convince
bash to behave the same?
Not sure this answers your question...
Well, you could either just type the command, filling several lines. Or you could end each line with a \ to continue on the next.
Lars
First thank you very much for your answer. Alas, as you already guessed, this doesn't address my problem. Let me try to explain it again. Long command lines are supposed to be scrolled by bash. That is, when your cursor reaches the very right-hand side of the window, bash should continue the command on the next line. In my case bash doesn't behave like this and I have no ideea why.
My understanding is that the line wrapping is a property of the terminal emulator you are using, not of bash. Maybe you were looking in the wrong place for the setting to control this.
Try starting a pure xterm and see if it does what you want. It behaves properly on the pretty standard FC4 system here.
On 10/6/05, valentin antonescu valduboisvert@yahoo.com wrote:
Can anybody give me some hints about how to
convince
bash to behave the same?
Not sure this answers your question...
Well, you could either just type the command, filling several lines. Or you could end each line with a \ to continue on the next.
Lars
First thank you very much for your answer. Alas, as you already guessed, this doesn't address my problem. Let me try to explain it again. Long command lines are supposed to be scrolled by bash. That is, when your cursor reaches the very right-hand side of the window, bash should continue the command on the next line. In my case bash doesn't behave like this and I have no ideea why.
Val
Hi Valentin, You wrote that bash didn't continue the command on the new line. What does bash instead? Does the command scroll to the left? Do you have .inputrc file in your home directory? Is so, please look into this file. If .inputrc contains a line set horizontal-scroll-mode on that is the reason of your bash behaviour. From bash man page:
`horizontal-scroll-mode' This variable can be set to either `on' or `off'. Setting it to `on' means that the text of the lines being edited will scroll horizontally on a single screen line when they are longer than the width of the screen, instead of wrapping onto a new screen line. By default, this variable is set to `off'.
Just deleting this line will 'repair' bash. HTH -- V.Rudenko PS. Sorry for my bad English
wld wrote:
On 10/6/05, valentin antonescu valduboisvert@yahoo.com wrote:
Can anybody give me some hints about how to
convince
bash to behave the same?
Not sure this answers your question...
Well, you could either just type the command, filling several lines. Or you could end each line with a \ to continue on the next.
Lars
First thank you very much for your answer. Alas, as you already guessed, this doesn't address my problem. Let me try to explain it again. Long command lines are supposed to be scrolled by bash. That is, when your cursor reaches the very right-hand side of the window, bash should continue the command on the next line. In my case bash doesn't behave like this and I have no ideea why.
Val
Hi Valentin, You wrote that bash didn't continue the command on the new line. What does bash instead? Does the command scroll to the left? Do you have .inputrc file in your home directory? Is so, please look into this file. If .inputrc contains a line set horizontal-scroll-mode on that is the reason of your bash behaviour. From bash man page:
`horizontal-scroll-mode' This variable can be set to either `on' or `off'. Setting it to `on' means that the text of the lines being edited will scroll horizontally on a single screen line when they are longer than the width of the screen, instead of wrapping onto a new screen line. By default, this variable is set to `off'.
Just deleting this line will 'repair' bash. HTH -- V.Rudenko PS. Sorry for my bad English
Rudenko is on to something. I can make my bash shell duplicate what you describe by doing the command:
bind 'set horizontal-scroll-mode on'
In my shell. You might investigate the bash documentation and look for settings in you .inputrc, .bashrc and IIRC /etc/inputrc....
I've just expended my limited knowledge. Hope this helps.