help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Input redirection (was: Re: pb with oct file, return a matrix)


From: Søren Hauberg
Subject: Input redirection (was: Re: pb with oct file, return a matrix)
Date: Thu, 23 Apr 2009 13:30:55 +0200

tor, 23 04 2009 kl. 10:48 +0200, skrev Jaroslav Hajek:
> you should use octave_stdout (pager.h) if you want your output to mix
> with output of other functions normally. That includes going through
> the pager if it is enabled. Writing directly to C's stdout bypasses
> Octave's I/O mechanisms.

I always wondered why this is the case. Could we just do something like

  std::cout.rdbuf (octave_stdout.rdbuf ()); // untested

to send everything from stdout through the pager?

Søren



reply via email to

[Prev in Thread] Current Thread [Next in Thread]