#include "pager.h"
Public Member Functions | |
output_system (const output_system &)=delete | |
output_system (interpreter &interp) | |
~output_system (void)=default | |
std::ostream & | __diary__ (void) |
std::ostream & | __stdout__ (void) |
void | clear_external_pager (void) |
void | close_diary (void) |
diary_stream & | diary (void) |
std::string | diary_file_name (const std::string &nm) |
std::string | diary_file_name (void) const |
std::ofstream & | external_diary_file (void) |
void | flush_stdout (void) |
bool | flushing_output_to_pager (bool flag) |
bool | flushing_output_to_pager (void) const |
void | open_diary (void) |
output_system & | operator= (const output_system &)=delete |
bool | page_output_immediately (bool flag) |
octave_value | page_output_immediately (const octave_value_list &args, int nargout) |
bool | page_output_immediately (void) const |
bool | page_screen_output (bool flag) |
octave_value | page_screen_output (const octave_value_list &args, int nargout) |
bool | page_screen_output (void) const |
octave_value | PAGER (const octave_value_list &args, int nargout) |
std::string | PAGER (const std::string &s) |
pager_stream & | pager (void) |
std::string | PAGER (void) const |
std::string | pager_command (void) const |
octave_value | PAGER_FLAGS (const octave_value_list &args, int nargout) |
std::string | PAGER_FLAGS (const std::string &s) |
std::string | PAGER_FLAGS (void) const |
bool | really_flush_to_pager (bool flag) |
bool | really_flush_to_pager (void) const |
void | reset (void) |
bool | sync (const char *msg, int len) |
bool | write_to_diary_file (bool flag) |
bool | write_to_diary_file (void) const |
Private Member Functions | |
void | do_sync (const char *msg, int len, bool bypass_pager) |
void | start_external_pager (void) |
Private Attributes | |
std::string | m_diary_file_name |
diary_stream | m_diary_stream |
std::ofstream | m_external_diary_file |
oprocstream * | m_external_pager = nullptr |
bool | m_flushing_output_to_pager |
interpreter & | m_interpreter |
bool | m_page_output_immediately |
bool | m_page_screen_output |
std::string | m_PAGER |
std::string | m_PAGER_FLAGS |
pager_stream | m_pager_stream |
bool | m_really_flush_to_pager |
bool | m_write_to_diary_file |
output_system::output_system | ( | interpreter & | interp | ) |
|
delete |
|
default |
|
inline |
Definition at line 262 of file pager.h.
References m_diary_stream, and diary_stream::stream().
Referenced by __diary__().
|
inline |
Definition at line 260 of file pager.h.
References m_pager_stream, and pager_stream::stream().
Referenced by stream_list::stream_list(), and __stdout__().
void output_system::clear_external_pager | ( | void | ) |
Definition at line 409 of file pager.cc.
References interpreter::get_child_list(), m_external_pager, m_interpreter, procstreambase::pid(), and child_list::remove().
Referenced by flush_stdout().
void output_system::close_diary | ( | void | ) |
Definition at line 341 of file pager.cc.
References pager_stream::flush_current_contents_to_diary(), m_external_diary_file, m_pager_stream, and octave_diary.
Referenced by Fdiary(), and open_diary().
|
inline |
Definition at line 148 of file pager.h.
References m_diary_stream.
|
inline |
Definition at line 152 of file pager.h.
References m_diary_file_name.
|
inline |
|
private |
Definition at line 440 of file pager.cc.
References interpreter::get_event_manager(), event_manager::interpreter_output(), len, m_external_pager, m_interpreter, interpreter::server_mode(), and start_external_pager().
Referenced by sync().
|
inline |
Definition at line 246 of file pager.h.
References m_external_diary_file.
Referenced by diary_buf::sync().
void output_system::flush_stdout | ( | void | ) |
Definition at line 323 of file pager.cc.
References clear_external_pager(), m_flushing_output_to_pager, m_pager_stream, m_really_flush_to_pager, and pager_stream::stream().
Referenced by flush_stdout(), and reset().
|
inline |
Definition at line 237 of file pager.h.
References m_flushing_output_to_pager.
|
inline |
Definition at line 232 of file pager.h.
References m_flushing_output_to_pager.
void output_system::open_diary | ( | void | ) |
Definition at line 363 of file pager.cc.
References close_diary(), error(), m_diary_file_name, m_external_diary_file, m_pager_stream, and pager_stream::set_diary_skip().
Referenced by Fdiary().
|
delete |
|
inline |
Definition at line 189 of file pager.h.
References m_page_output_immediately.
octave_value output_system::page_output_immediately | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 290 of file pager.cc.
References m_page_output_immediately, and set_internal_variable().
Referenced by Fpage_output_immediately().
|
inline |
Definition at line 184 of file pager.h.
References m_page_output_immediately.
|
inline |
Definition at line 201 of file pager.h.
References m_page_screen_output.
octave_value output_system::page_screen_output | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 298 of file pager.cc.
References m_page_screen_output, and set_internal_variable().
Referenced by Fmore(), and Fpage_screen_output().
|
inline |
Definition at line 199 of file pager.h.
References m_page_screen_output.
octave_value output_system::PAGER | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 276 of file pager.cc.
References m_PAGER, and set_internal_variable().
Referenced by FPAGER().
|
inline |
|
inline |
Definition at line 146 of file pager.h.
References m_pager_stream.
|
inline |
std::string output_system::pager_command | ( | void | ) | const |
Definition at line 305 of file pager.cc.
References m_PAGER, and m_PAGER_FLAGS.
Referenced by start_external_pager().
octave_value output_system::PAGER_FLAGS | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 282 of file pager.cc.
References m_PAGER_FLAGS, and set_internal_variable().
Referenced by FPAGER_FLAGS().
|
inline |
Definition at line 174 of file pager.h.
References m_PAGER_FLAGS.
|
inline |
Definition at line 172 of file pager.h.
References m_PAGER_FLAGS.
|
inline |
Definition at line 225 of file pager.h.
References m_really_flush_to_pager.
|
inline |
Definition at line 220 of file pager.h.
References m_really_flush_to_pager.
void output_system::reset | ( | void | ) |
Definition at line 315 of file pager.cc.
References flush_stdout(), m_diary_stream, m_pager_stream, pager_stream::reset(), and diary_stream::reset().
|
private |
Definition at line 422 of file pager.cc.
References interpreter::get_child_list(), child_list::insert(), m_external_pager, m_interpreter, pager_command(), pager_event_handler(), and procstreambase::pid().
Referenced by do_sync().
bool output_system::sync | ( | const char * | msg, |
int | len | ||
) |
Definition at line 378 of file pager.cc.
References do_sync(), application::forced_interactive(), interpreter::interactive(), len, m_interpreter, m_page_output_immediately, m_page_screen_output, m_really_flush_to_pager, more_than_a_screenful(), and interpreter::server_mode().
Referenced by pager_buf::sync().
|
inline |
Definition at line 213 of file pager.h.
References m_write_to_diary_file.
|
inline |
Definition at line 208 of file pager.h.
References m_write_to_diary_file.
Referenced by Fdiary(), and diary_buf::sync().
|
private |
Definition at line 279 of file pager.h.
Referenced by diary_file_name(), and open_diary().
|
private |
Definition at line 270 of file pager.h.
Referenced by __diary__(), diary(), and reset().
|
private |
Definition at line 276 of file pager.h.
Referenced by close_diary(), external_diary_file(), and open_diary().
|
private |
Definition at line 273 of file pager.h.
Referenced by clear_external_pager(), do_sync(), and start_external_pager().
|
private |
Definition at line 301 of file pager.h.
Referenced by flush_stdout(), and flushing_output_to_pager().
|
private |
Definition at line 266 of file pager.h.
Referenced by clear_external_pager(), do_sync(), start_external_pager(), and sync().
|
private |
Definition at line 290 of file pager.h.
Referenced by page_output_immediately(), and sync().
|
private |
Definition at line 294 of file pager.h.
Referenced by page_screen_output(), and sync().
|
private |
Definition at line 282 of file pager.h.
Referenced by PAGER(), and pager_command().
|
private |
Definition at line 285 of file pager.h.
Referenced by pager_command(), and PAGER_FLAGS().
|
private |
Definition at line 268 of file pager.h.
Referenced by __stdout__(), close_diary(), flush_stdout(), open_diary(), pager(), and reset().
|
private |
Definition at line 299 of file pager.h.
Referenced by flush_stdout(), really_flush_to_pager(), and sync().
|
private |
Definition at line 297 of file pager.h.
Referenced by write_to_diary_file().