GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <fstream>
#include <iostream>
#include <string>
#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 "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.
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 | F__diaryfile__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | F__diarystate__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fdiary (const octave_value_list &args, int) mixed together just as they appear on the terminal.Valid options are |
void | flush_octave_stdout (void) |
OCTAVE_EXPORT octave_value_list | Fmore (const octave_value_list &args, int) ode |
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 = 0 |
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 = true |
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 external_pager, procstreambase::pid(), and octave::child_list::remove().
Referenced by flush_octave_stdout().
|
static |
Definition at line 473 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 63 of file pager.cc.
References octave::sys::env::getenv(), OCTAVE_DEFAULT_PAGER, and string.
|
static |
Referenced by F__diaryfile__(), Fdiary(), and open_diary_file().
Definition at line 145 of file pager.cc.
References octave::child_list::insert(), pager_command(), pager_event_handler(), procstreambase::pid(), and string.
Referenced by octave_pager_buf::sync().
OCTAVE_EXPORT octave_value_list F__diaryfile__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 580 of file pager.cc.
References diary_file(), and ovl().
Referenced by install_pager_fcns().
OCTAVE_EXPORT octave_value_list F__diarystate__ | ( | const octave_value_list & | , |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fdiary | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 536 of file pager.cc.
References arg, close_diary_file(), diary_file(), nargin, open_diary_file(), ovl(), print_usage(), string, and write_to_diary_file.
Referenced by install_pager_fcns().
void flush_octave_stdout | ( | void | ) |
Definition at line 454 of file pager.cc.
References clear_external_pager(), frame, octave_stdout, and action_container::protect_var().
Referenced by gh_manager::do_process_events(), F__octave_link_edit_file__(), F__octave_link_file_dialog__(), F__octave_link_input_dialog__(), F__octave_link_list_dialog__(), F__octave_link_message_dialog__(), F__octave_link_question_dialog__(), get_user_input(), interactive_input(), octave_base_reader::octave_gets(), verror(), and vwarning().
OCTAVE_EXPORT octave_value_list Fmore | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 605 of file pager.cc.
References arg, error(), nargin, ovl(), print_usage(), string, and Vpage_screen_output.
Referenced by install_pager_fcns().
Definition at line 203 of file pager.cc.
References octave::command_editor::terminal_cols(), and octave::command_editor::terminal_rows().
Referenced by octave_pager_buf::sync().
|
static |
Definition at line 496 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 |
Definition at line 107 of file pager.cc.
References retval, octave::sys::wifexited(), and octave::sys::wifsignaled().
Referenced by do_sync().
|
static |
Definition at line 60 of file pager.cc.
Referenced by close_diary_file(), open_diary_file(), and octave_diary_buf::sync().
|
static |
Definition at line 51 of file pager.cc.
Referenced by clear_external_pager().
|
static |
|
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().