#include <fstream>
#include <iostream>
#include <string>
#include "child-list.h"
#include "cmd-edit.h"
#include "oct-env.h"
#include "oct-syscalls.h"
#include "singleton-cleanup.h"
#include "defaults.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "interpreter-private.h"
#include "octave.h"
#include "ovl.h"
#include "pager.h"
#include "procstream.h"
#include "sighandlers.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Namespaces | |
octave | |
Functions | |
static void | clear_external_pager (void) |
static void | close_diary_file (void) |
static std::string | default_pager (void) |
static std::string | diary_file ("diary") |
static void | do_sync (const char *msg, int len, bool bypass_pager) |
OCTAVE_EXPORT octave_value_list | Fdiary (const octave_value_list &args, int nargout) ar |
void | octave::flush_stdout (void) |
static bool | more_than_a_screenful (const char *s, int len) |
static void | open_diary_file (void) |
static std::string | pager_command (void) |
static bool | pager_event_handler (pid_t pid, int status) |
Variables | |
static std::ofstream | external_diary_file |
static oprocstream * | external_pager = nullptr |
static bool | flushing_output_to_pager = false |
static bool | really_flush_to_pager = false |
static bool | Vpage_output_immediately = false |
static bool | Vpage_screen_output = false |
static std::string | VPAGER = default_pager () |
static std::string | VPAGER_FLAGS |
static bool | write_to_diary_file = false |
|
static |
Definition at line 95 of file pager.cc.
References octave::__get_child_list__(), external_pager, procstreambase::pid(), and octave::child_list::remove().
Referenced by octave::flush_stdout().
|
static |
Definition at line 484 of file pager.cc.
References external_diary_file, octave::pager_stream::flush_current_contents_to_diary(), and octave_diary.
Referenced by Fdiary(), and open_diary_file().
|
static |
Definition at line 65 of file pager.cc.
References octave::config::default_pager(), octave::sys::env::getenv(), and string.
|
static |
Referenced by Fdiary(), and open_diary_file().
|
static |
Definition at line 148 of file pager.cc.
References octave::__get_child_list__(), external_pager, octave::child_list::insert(), pager_command(), pager_event_handler(), procstreambase::pid(), and string.
Referenced by octave::pager_buf::sync().
OCTAVE_EXPORT octave_value_list Fdiary | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 554 of file pager.cc.
References arg, close_diary_file(), diary_file(), nargout(), open_diary_file(), ovl(), print_usage(), string, write_to_diary_file, and octave_value::xstring_value().
|
static |
Definition at line 211 of file pager.cc.
References i, s, octave::command_editor::terminal_cols(), and octave::command_editor::terminal_rows().
Referenced by octave::pager_buf::sync().
|
static |
Definition at line 507 of file pager.cc.
References close_diary_file(), diary_file(), error(), external_diary_file, and octave::pager_stream::set_diary_skip().
Referenced by Fdiary().
|
static |
|
static |
Definition at line 110 of file pager.cc.
References retval, octave::sys::wifexited(), and octave::sys::wifsignaled().
Referenced by do_sync().
|
static |
Definition at line 62 of file pager.cc.
Referenced by close_diary_file(), open_diary_file(), and octave::diary_buf::sync().
|
static |
Definition at line 53 of file pager.cc.
Referenced by clear_external_pager(), and do_sync().
Definition at line 92 of file pager.cc.
Referenced by octave::flush_stdout().
Definition at line 90 of file pager.cc.
Referenced by octave::flush_stdout(), and octave::pager_buf::sync().
Definition at line 84 of file pager.cc.
Referenced by octave::pager_buf::sync().
Definition at line 88 of file pager.cc.
Referenced by octave::pager_buf::sync().
|
static |
Definition at line 76 of file pager.cc.
Referenced by pager_command().
|
static |
Definition at line 79 of file pager.cc.
Referenced by pager_command().