|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
streamlined output (noIs there a way to get streamlined output from Octave when run from
the command line with "--eval" (or anytime)? I want to get rid of superfluous messages etc and just return straight, re-parseable octave code, without newlines for display, extra empty lines, "ans = " verbiage, etc. I am writing a hook in Tcl (yeah, I like Tcl... don't hate me...), and I would like to be able to send text to an octave process text like [1,0;2,0;3,0] + 4 and get back [5,4;6,4;7,4] I don't want to suppress all output, just have it formatted more, um, sensibly (at least from a glue-programming perspective). Thanks everyone again for all the help! _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
streamlined output (noOn 25-Jun-2009, ws wrote:
| Is there a way to get streamlined output from Octave when run from | the command line with "--eval" (or anytime)? | | I want to get rid of superfluous messages etc and just return straight, | re-parseable octave code, without newlines for display, extra empty lines, | "ans = " verbiage, etc. | | I am writing a hook in Tcl (yeah, I like Tcl... don't hate me...), | and I would like to be able to send text to an octave process text like | | [1,0;2,0;3,0] + 4 | | and get back | | [5,4;6,4;7,4] | | I don't want to suppress all output, just have it formatted more, um, | sensibly (at least from a glue-programming perspective). Octave does not have a format mode like this, but most of the routines in src/pr-output.cc have a "pr_as_read_syntax" option. This option was originally used for a purpose different from the one you have in mind, but maybe it would not be too hard to implement what you want. I'd certainly consider a patch. jwe _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: streamlined output (no> Octave does not have a format mode like this, but most of the routines
> in src/pr-output.cc have a "pr_as_read_syntax" option. This option > was originally used for a purpose different from the one you have in > mind, but maybe it would not be too hard to implement what you want. > I'd certainly consider a patch. In terms of useability, what about setting a per session variable? In the source (which I haven't grepped for pr_as_read_syntax yet), I would add an if statement to check said variable? if the variable is set true, then all output would be minimalistic and re-parseable as is. It would probably be good to eliminate the prompt, and also to flush aggressively. Thoughts? We can move to maintainers, I suppose, but it might be nice to get some user feedback to a new feature. (I am not much of a C programmer, though I am a mad scripter, so it might be slow going at first.) -W _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
| Free embeddable forum powered by Nabble | Forum Help |