GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pager.cc File Reference
#include <fstream>
#include <iostream>
#include <string>
#include "child-list.h"
#include "cmd-edit.h"
#include "oct-env.h"
#include "oct-syscalls.h"
#include "defaults.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "interpreter.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"
Include dependency graph for pager.cc:

Go to the source code of this file.

Functions

std::ostream & __diary__ (void)
 
std::ostream & __stdout__ (void)
 
static std::string default_pager (void)
 
OCTAVE_EXPORT octave_value_list Fdiary (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
void flush_stdout (void)
 
OCTAVE_EXPORT octave_value_list Fmore (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fpage_output_immediately (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fpage_screen_output (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list FPAGER (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list FPAGER_FLAGS (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fterminal_size (const octave_value_list &args, int)
 
static bool more_than_a_screenful (const char *s, int len)
 
static bool pager_event_handler (pid_t pid, int status)
 

Function Documentation

◆ __diary__()

std::ostream& __diary__ ( void  )

Definition at line 499 of file pager.cc.

References output_system::__diary__(), and __get_output_system__().

◆ __stdout__()

std::ostream& __stdout__ ( void  )

Definition at line 492 of file pager.cc.

References __get_output_system__(), and output_system::__stdout__().

◆ default_pager()

static std::string default_pager ( void  )
static

Definition at line 117 of file pager.cc.

◆ Fdiary()

OCTAVE_EXPORT octave_value_list Fdiary ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ flush_stdout()

◆ Fmore()

OCTAVE_EXPORT octave_value_list Fmore ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 598 of file pager.cc.

References error(), ovl(), output_system::page_screen_output(), and print_usage().

◆ Fpage_output_immediately()

OCTAVE_EXPORT octave_value_list Fpage_output_immediately ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 683 of file pager.cc.

References output_system::page_output_immediately().

◆ Fpage_screen_output()

OCTAVE_EXPORT octave_value_list Fpage_screen_output ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 707 of file pager.cc.

References output_system::page_screen_output().

◆ FPAGER()

OCTAVE_EXPORT octave_value_list FPAGER ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 730 of file pager.cc.

References output_system::PAGER().

◆ FPAGER_FLAGS()

OCTAVE_EXPORT octave_value_list FPAGER_FLAGS ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 749 of file pager.cc.

References output_system::PAGER_FLAGS().

◆ Fterminal_size()

OCTAVE_EXPORT octave_value_list Fterminal_size ( const octave_value_list args,
int   
)

◆ more_than_a_screenful()

static bool more_than_a_screenful ( const char *  s,
int  len 
)
static

Definition at line 87 of file pager.cc.

References len, command_editor::terminal_cols(), and command_editor::terminal_rows().

Referenced by output_system::sync().

◆ pager_event_handler()

static bool pager_event_handler ( pid_t  pid,
int  status 
)
static

Definition at line 58 of file pager.cc.

References wifexited(), and wifsignaled().

Referenced by output_system::start_external_pager().