How to get the prompt to wrap my input?

View: New views
11 Messages — Rating Filter:   Alert me  

How to get the prompt to wrap my input?

by Egholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I'm using Octave (3.0.1) under WinXP, and would like the input prompt to wrap my long lines when entering (just as Cygwin does it) instead of "scrolling" the single line and prefixing with a "<". Is that possible, somehow?

BR,
 Egholm

Re: How to get the prompt to wrap my input?

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

--- Egholm  wrote:

>
> Hi there,
>
> I'm using Octave (3.0.1) under WinXP, and would like the input prompt to
> wrap my long lines when entering (just as Cygwin does it) instead of
> "scrolling" the single line and prefixing with a "<". Is that possible,
> somehow?
>
> BR,
>  Egholm

Please use '\' or '...' like


A=...
[1 2 0 6 0 4; ...
3 -3 2 8 0 0; ...
-4 0 5 6 0 -6; ...
0 2 0 -1 2 -2; ...
1 5 1 0 0 0; ...
0 -2 -1 0 2 0]

Regards

Tatsuro




--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: How to get the prompt to wrap my input?

by Egholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tatsuro,

> Tatsuro MATSUOKA-2 wrote:
>> Egholm  wrote:
>> I'm using Octave (3.0.1) under WinXP, and would like the input prompt to
>> wrap my long lines when entering (just as Cygwin does it) instead of
>> "scrolling" the single line and prefixing with a "<". Is that possible,
>> somehow?

> Please use '\' or '...' like

> A=...
> [1 2 0 6 0 4; ...
> 3 -3 2 8 0 0; ...
> -4 0 5 6 0 -6; ...
> 0 2 0 -1 2 -2; ...
> 1 5 1 0 0 0; ...
> 0 -2 -1 0 2 0]

That was a way, sure!
But it lacks the possibility to go back and change anything in a previous line...

I'd really rather that the prompt just wrapped :-/

Thanks for the suggestion anyway,
 Egholm

Re: How to get the prompt to wrap my input?

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can try to add

set horizontal-scroll-mode on

to the file <octave_root>\share\octave\3.0.1\m\startup\inputrc
and restart octave. But I'm not sure that option is honored when
running GNU readline in a windows command prompt.

Michael.


On Fri, May 1, 2009 at 7:50 AM, Egholm <nabble@...> wrote:

>
> Hi Tatsuro,
>
>> Tatsuro MATSUOKA-2 wrote:
>>> Egholm  wrote:
>>> I'm using Octave (3.0.1) under WinXP, and would like the input prompt to
>>> wrap my long lines when entering (just as Cygwin does it) instead of
>>> "scrolling" the single line and prefixing with a "<". Is that possible,
>>> somehow?
>
>> Please use '\' or '...' like
>
>> A=...
>> [1 2 0 6 0 4; ...
>> 3 -3 2 8 0 0; ...
>> -4 0 5 6 0 -6; ...
>> 0 2 0 -1 2 -2; ...
>> 1 5 1 0 0 0; ...
>> 0 -2 -1 0 2 0]
>
> That was a way, sure!
> But it lacks the possibility to go back and change anything in a previous
> line...
>
> I'd really rather that the prompt just wrapped :-/
>
> Thanks for the suggestion anyway,
>  Egholm
> --
> View this message in context: http://www.nabble.com/How-to-get-the-prompt-to-wrap-my-input--tp23316815p23329087.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: How to get the prompt to wrap my input?

by Egholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,
Michael Goffioul-2 wrote:
You can try to add

set horizontal-scroll-mode on

to the file <octave_root>\share\octave\3.0.1\m\startup\inputrc
and restart octave. But I'm not sure that option is honored when
running GNU readline in a windows command prompt.
Good suggestion, however it didn't do the trick :-/
Maybe it's really a matter of configuring "msys" - the hosting shell?!

BR,
 Egholm


On Fri, May 1, 2009 at 7:50 AM, Egholm <nabble@egmail.dk> wrote:
>
> Hi Tatsuro,
>
>> Tatsuro MATSUOKA-2 wrote:
>>> Egholm  wrote:
>>> I'm using Octave (3.0.1) under WinXP, and would like the input prompt to
>>> wrap my long lines when entering (just as Cygwin does it) instead of
>>> "scrolling" the single line and prefixing with a "<". Is that possible,
>>> somehow?
>
>> Please use '\' or '...' like
>
>> A=...
>> [1 2 0 6 0 4; ...
>> 3 -3 2 8 0 0; ...
>> -4 0 5 6 0 -6; ...
>> 0 2 0 -1 2 -2; ...
>> 1 5 1 0 0 0; ...
>> 0 -2 -1 0 2 0]
>
> That was a way, sure!
> But it lacks the possibility to go back and change anything in a previous
> line...
>
> I'd really rather that the prompt just wrapped :-/
>
> Thanks for the suggestion anyway,
>  Egholm
> --
> View this message in context: http://www.nabble.com/How-to-get-the-prompt-to-wrap-my-input--tp23316815p23329087.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave@octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>

_______________________________________________
Help-octave mailing list
Help-octave@octave.org
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave


Re: How to get the prompt to wrap my input?

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

--- Michael Goffioul wrote:

> You can try to add
>
> set horizontal-scroll-mode on
>
> to the file <octave_root>\share\octave\3.0.1\m\startup\inputrc
> and restart octave. But I'm not sure that option is honored when
> running GNU readline in a windows command prompt.
>
> Michael.

If you cannot get the results by trying the suggestion by Michael, it is better to write the long
lines by suitable text editor like SciTE (which is bundled with octave-3.0.1 MSVC) , copy it to the
windows clipboard CTRL+C or ScITE menu, and paste them to using right mouse button to the windows
command prompt in which 'quick edit mode' are enabled.  

Please see the following,

http://www.nabble.com/Re:-cmd.exe-colors-p23309965.html

Regards

Tatsuro  

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: How to get the prompt to wrap my input?

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 1, 2009 at 10:08 AM, Egholm <nabble@...> wrote:

>
> Hi Michael,
>
> Michael Goffioul-2 wrote:
>>
>> You can try to add
>>
>> set horizontal-scroll-mode on
>>
>> to the file <octave_root>\share\octave\3.0.1\m\startup\inputrc
>> and restart octave. But I'm not sure that option is honored when
>> running GNU readline in a windows command prompt.
>>
>
> Good suggestion, however it didn't do the trick :-/
> Maybe it's really a matter of configuring "msys" - the hosting shell?!

Are you running octave in MSYS shell or in windows command prompt?
This makes a difference. I don't think what you want is possible in the
windows command prompt. However it might work in MSYS rxvt. But
keep in mind that MSYS rxvt terminal emulation is poor, so other things
might not work. To start octave correctly in MSYS rxvt, you should use
the flags --line-editing --interactive, to force interactive mode.

Michael.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: How to get the prompt to wrap my input?

by Egholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,

Michael Goffioul-2 wrote:
On Fri, May 1, 2009 at 10:08 AM, Egholm <nabble@egmail.dk> wrote:
> Maybe it's really a matter of configuring "msys" - the hosting shell?!

Are you running octave in MSYS shell or in windows command prompt?
This makes a difference. I don't think what you want is possible in the
windows command prompt. However it might work in MSYS rxvt. But
keep in mind that MSYS rxvt terminal emulation is poor, so other things
might not work. To start octave correctly in MSYS rxvt, you should use
the flags --line-editing --interactive, to force interactive mode.
If I start it from the Windows Start menu, it launches it in MSYS (I think)...
I just tried starting it "manually" from my Cygwin shell - now, there I get the desired multiline wrapping. However, editing the line makes everything "explode" - text being repeated, left dangling on the screen.
That could be related to a similar bad rxvt simulation in Cygwin?!

I stumbled across this one describing these Cygwin problems, as well: http://www-old.cae.wisc.edu/pipermail/help-octave/2008-February/008007.html
Unfortunately, no response...

// Egholm

Re: How to get the prompt to wrap my input?

by Egholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tatsuro ,

Tatsuro MATSUOKA-2 wrote:
--- Michael Goffioul wrote:
> You can try to add
>
> set horizontal-scroll-mode on
>
> to the file <octave_root>\share\octave\3.0.1\m\startup\inputrc

If you cannot get the results by trying the suggestion by Michael, it is better to write the long
lines by suitable text editor like SciTE (which is bundled with octave-3.0.1 MSVC) , copy it to the
windows clipboard CTRL+C or ScITE menu, and paste them to using right mouse button to the windows
command prompt in which 'quick edit mode' are enabled.  
That's a way to get around it, but I'd prefer that as a last option - it's not so smooth (though indeed way smoother with quick-edit mode, yes) :-)

// Egholm

Re: How to get the prompt to wrap my input?

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can also try console.sourceforge.net
I think the line edits behave the way you want.

--judd


On Fri, May 1, 2009 at 7:31 AM, Egholm <nabble@...> wrote:

Hi Tatsuro ,


Tatsuro MATSUOKA-2 wrote:
>
> --- Michael Goffioul wrote:
>> You can try to add
>>
>> set horizontal-scroll-mode on
>>
>> to the file <octave_root>\share\octave\3.0.1\m\startup\inputrc
>
> If you cannot get the results by trying the suggestion by Michael, it is
> better to write the long
> lines by suitable text editor like SciTE (which is bundled with
> octave-3.0.1 MSVC) , copy it to the
> windows clipboard CTRL+C or ScITE menu, and paste them to using right
> mouse button to the windows
> command prompt in which 'quick edit mode' are enabled.
>

That's a way to get around it, but I'd prefer that as a last option - it's
not so smooth (though indeed way smoother with quick-edit mode, yes) :-)

// Egholm
--
View this message in context: http://www.nabble.com/How-to-get-the-prompt-to-wrap-my-input--tp23316815p23331763.html
Sent from the Octave - General mailing list archive at Nabble.com.

_______________________________________________


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: How to get the prompt to wrap my input?

by Egholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Judd,

Judd Storrs wrote:
You can also try console.sourceforge.net
I think the line edits behave the way you want.
I just tried it, however it acts justs as msys, and if I launch cygwin in there and then octave, it behaves just as my normal cygwin shell (messing up the multilines when deleting)...

Good suggestion, though...

BR,
 Egholm