Mercurial > hg > octave-avbm
changeset 1806:12bc3042c596
[project @ 1996-01-29 06:56:36 by jwe]
author | jwe |
---|---|
date | Mon, 29 Jan 1996 07:02:48 +0000 |
parents | ba9c62430202 |
children | b16eeb7d68d6 |
files | liboctave/Makefile.in src/pager.cc src/pager.h src/pr-output.cc |
diffstat | 4 files changed, 6 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Makefile.in +++ b/liboctave/Makefile.in @@ -32,8 +32,8 @@ NPSOL.h ODE.h ODEFunc.h Objective.h QP.h QPSOL.h Quad.h \ Range.h base-min.h cmd-hist.h dir-ops.h file-ops.h \ f77-uscore.h idx-vector.h lo-error.h oct-cmplx.h oct-glob.h \ - oct-math.h pathsearch.h statdefs.h str-vec.h sun-utils.h \ - sysdir.h \ + oct-math.h oct-term.h pathsearch.h statdefs.h str-vec.h \ + sun-utils.h sysdir.h \ $(MATRIX_INC) TEMPLATE_SRC := Array.cc MArray.cc @@ -54,8 +54,8 @@ LPsolve.cc NLEqn.cc NPSOL.cc ODE.cc QPSOL.cc Quad.cc Range.cc \ acosh.c asinh.c atanh.c cmd-hist.cc dir-ops.cc erf.c erfc.c \ file-ops.cc filemode.c gamma.c idx-vector.cc lo-error.cc \ - lgamma.c mkdir.c oct-glob.cc pathsearch.cc rename.c \ - rmdir.c sun-utils.cc tempname.c tempnam.c \ + lgamma.c mkdir.c oct-glob.cc oct-term.cc pathsearch.cc rename.c \ + rmdir.c str-vec.cc sun-utils.cc tempname.c tempnam.c \ $(TEMPLATE_SRC) \ $(TI_SRC) \ $(MATRIX_SRC)
--- a/src/pager.cc +++ b/src/pager.cc @@ -36,6 +36,7 @@ #include "procstream.h" +#include "oct-term.h" #include "str-vec.h" #include "defun.h" @@ -77,26 +78,6 @@ return count; } -// For now, use the variables from readline. It already handles -// SIGWINCH, so these values have a good chance of being correct even -// if the window changes size (they will be wrong if, for example, the -// luser changes the window size while the pager is running, and the -// signal is handled by the pager instead of us. - -int -terminal_columns (void) -{ - extern int screenwidth; - return screenwidth > 0 ? screenwidth : 80; -} - -int -terminal_rows (void) -{ - extern int screenheight; - return screenheight > 0 ? screenheight : 24; -} - void initialize_pager (void) {
--- a/src/pager.h +++ b/src/pager.h @@ -29,8 +29,6 @@ #include <string> extern char *get_pager (void); -extern int terminal_columns (void); -extern int terminal_rows (void); extern void initialize_pager (void); extern void maybe_page_output (ostrstream& msg_buf); extern void flush_output_to_pager (void);