comparison src/pr-output.cc @ 2926:66ef74ee5d9f

[project @ 1997-05-05 03:20:52 by jwe]
author jwe
date Mon, 05 May 1997 03:40:21 +0000
parents 649549662cf6
children 66a1cede95e7
comparison
equal deleted inserted replaced
2925:f0665dac8e33 2926:66ef74ee5d9f
33 #include <iostream.h> 33 #include <iostream.h>
34 #include <strstream.h> 34 #include <strstream.h>
35 35
36 #include "CMatrix.h" 36 #include "CMatrix.h"
37 #include "Range.h" 37 #include "Range.h"
38 #include "cmd-edit.h"
38 #include "dMatrix.h" 39 #include "dMatrix.h"
39 #include "lo-mappers.h" 40 #include "lo-mappers.h"
40 #include "mach-info.h" 41 #include "mach-info.h"
41 #include "oct-cmplx.h" 42 #include "oct-cmplx.h"
42 #include "oct-math.h" 43 #include "oct-math.h"
43 #include "oct-term.h"
44 #include "str-vec.h" 44 #include "str-vec.h"
45 45
46 #include "defun.h" 46 #include "defun.h"
47 #include "error.h" 47 #include "error.h"
48 #include "gripes.h" 48 #include "gripes.h"
1144 { 1144 {
1145 int fw; 1145 int fw;
1146 set_format (m, fw); 1146 set_format (m, fw);
1147 int column_width = fw + 2; 1147 int column_width = fw + 2;
1148 int total_width = nc * column_width; 1148 int total_width = nc * column_width;
1149 int max_width = terminal_columns (); 1149 int max_width = command_editor::terminal_cols ();
1150 1150
1151 if (pr_as_read_syntax) 1151 if (pr_as_read_syntax)
1152 max_width -= 4; 1152 max_width -= 4;
1153 else 1153 else
1154 max_width -= extra_indent; 1154 max_width -= extra_indent;
1297 int r_fw, i_fw; 1297 int r_fw, i_fw;
1298 set_format (cm, r_fw, i_fw); 1298 set_format (cm, r_fw, i_fw);
1299 int column_width = i_fw + r_fw; 1299 int column_width = i_fw + r_fw;
1300 column_width += (bank_format || hex_format|| bit_format) ? 2 : 7; 1300 column_width += (bank_format || hex_format|| bit_format) ? 2 : 7;
1301 int total_width = nc * column_width; 1301 int total_width = nc * column_width;
1302 int max_width = terminal_columns (); 1302 int max_width = command_editor::terminal_cols ();
1303 1303
1304 if (pr_as_read_syntax) 1304 if (pr_as_read_syntax)
1305 max_width -= 4; 1305 max_width -= 4;
1306 else 1306 else
1307 max_width -= extra_indent; 1307 max_width -= extra_indent;
1445 } 1445 }
1446 else 1446 else
1447 { 1447 {
1448 int column_width = fw + 2; 1448 int column_width = fw + 2;
1449 int total_width = num_elem * column_width; 1449 int total_width = num_elem * column_width;
1450 int max_width = terminal_columns (); 1450 int max_width = command_editor::terminal_cols ();
1451 1451
1452 if (free_format) 1452 if (free_format)
1453 { 1453 {
1454 os << r; 1454 os << r;
1455 return; 1455 return;