Mercurial > hg > octave-nkf
comparison liboctave/str-vec.cc @ 2926:66ef74ee5d9f
[project @ 1997-05-05 03:20:52 by jwe]
author | jwe |
---|---|
date | Mon, 05 May 1997 03:40:21 +0000 |
parents | 8b262e771614 |
children | 9d26524e2869 |
comparison
equal
deleted
inserted
replaced
2925:f0665dac8e33 | 2926:66ef74ee5d9f |
---|---|
26 | 26 |
27 #include <string> | 27 #include <string> |
28 | 28 |
29 #include <iostream.h> | 29 #include <iostream.h> |
30 | 30 |
31 #include "oct-term.h" | 31 #include "cmd-edit.h" |
32 #include "str-vec.h" | 32 #include "str-vec.h" |
33 | 33 |
34 // Create a string vector from a NULL terminated list of C strings. | 34 // Create a string vector from a NULL terminated list of C strings. |
35 | 35 |
36 string_vector::string_vector (const char * const *s) | 36 string_vector::string_vector (const char * const *s) |
78 | 78 |
79 max_name_length += 2; | 79 max_name_length += 2; |
80 | 80 |
81 // Calculate the maximum number of columns that will fit. | 81 // Calculate the maximum number of columns that will fit. |
82 | 82 |
83 int line_length = terminal_columns (); | 83 int line_length = command_editor::terminal_cols (); |
84 int cols = line_length / max_name_length; | 84 int cols = line_length / max_name_length; |
85 if (cols == 0) | 85 if (cols == 0) |
86 cols = 1; | 86 cols = 1; |
87 | 87 |
88 // Calculate the number of rows that will be in each column except | 88 // Calculate the number of rows that will be in each column except |