comparison src/pager.cc @ 2103:30e2b1c4ffd9

[project @ 1996-04-28 12:19:45 by jwe]
author jwe
date Sun, 28 Apr 1996 12:22:22 +0000
parents 8a40a2a677fa
children dece5cc39e00
comparison
equal deleted inserted replaced
2102:8a40a2a677fa 2103:30e2b1c4ffd9
121 { 121 {
122 if (s) 122 if (s)
123 { 123 {
124 int available_rows = terminal_rows () - 2; 124 int available_rows = terminal_rows () - 2;
125 125
126 int count = 0;
127
126 char c; 128 char c;
127 129
128 while ((c = *s++) != '\0') 130 while ((c = *s++) != '\0')
129 if (c == '\n') 131 if (c == '\n')
130 { 132 {
150 char *buf = eback (); 152 char *buf = eback ();
151 153
152 bool bypass_pager = (really_flush_to_pager 154 bool bypass_pager = (really_flush_to_pager
153 && user_pref.page_screen_output 155 && user_pref.page_screen_output
154 && ! user_pref.page_output_immediately 156 && ! user_pref.page_output_immediately
155 && more_than_a_screenful (buf)); 157 && ! more_than_a_screenful (buf));
156 158
157 do_sync (buf, bypass_pager); 159 do_sync (buf, bypass_pager);
158 160
159 octave_diary << buf; 161 octave_diary << buf;
160 162