26 #if ! defined (octave_pager_h)
27 #define octave_pager_h 1
29 #include "octave-config.h"
50 pager_buf () : std::stringbuf (), m_diary_skip (0) { }
56 void flush_current_contents_to_diary ();
58 void set_diary_skip ();
66 std::size_t m_diary_skip;
81 void flush_current_contents_to_diary ();
83 void set_diary_skip ();
100 OCTAVE_DEFAULT_CONSTRUCT_DELETE (
diary_buf)
149 std::string val = m_diary_file_name;
150 m_diary_file_name = nm.empty () ?
"diary" : nm;
156 std::string
PAGER ()
const {
return m_PAGER; }
158 std::string
PAGER (
const std::string& s)
160 std::string val = m_PAGER;
171 std::string val = m_PAGER_FLAGS;
181 return m_page_output_immediately;
186 bool val = m_page_output_immediately;
187 m_page_output_immediately = flag;
198 bool val = m_page_screen_output;
199 m_page_screen_output = flag;
205 return m_write_to_diary_file;
210 bool val = m_write_to_diary_file;
211 m_write_to_diary_file = flag;
217 return m_really_flush_to_pager;
222 bool val = m_really_flush_to_pager;
223 m_really_flush_to_pager = flag;
229 return m_flushing_output_to_pager;
234 bool val = m_flushing_output_to_pager;
235 m_flushing_output_to_pager = flag;
247 bool sync (
const char *msg,
int len);
274 std::string m_diary_file_name;
280 std::string m_PAGER_FLAGS;
285 bool m_page_output_immediately;
289 bool m_page_screen_output;
292 bool m_write_to_diary_file;
294 bool m_really_flush_to_pager;
296 bool m_flushing_output_to_pager;
298 void start_external_pager ();
300 void do_sync (
const char *msg,
int len,
bool bypass_pager);
307 OCTAVE_END_NAMESPACE(
octave)
309 #define octave_stdout (octave::__stdout__ ())
311 #define octave_diary (octave::__diary__ ())
bool page_output_immediately(bool flag)
std::string PAGER_FLAGS() const
bool page_screen_output() const
bool page_output_immediately() const
bool flushing_output_to_pager(bool flag)
std::string diary_file_name() const
std::ofstream & external_diary_file()
bool write_to_diary_file(bool flag)
std::string PAGER(const std::string &s)
bool really_flush_to_pager(bool flag)
bool sync(const char *msg, int len)
bool flushing_output_to_pager() const
void clear_external_pager()
std::ostream & __stdout__()
bool really_flush_to_pager() const
output_system(interpreter &interp)
std::string diary_file_name(const std::string &nm)
bool write_to_diary_file() const
std::string pager_command() const
std::string PAGER_FLAGS(const std::string &s)
std::ostream & __diary__()
bool page_screen_output(bool flag)
std::string PAGER() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::ofstream ofstream(const std::string &filename, const std::ios::openmode mode)