c626af0aae1cbebfed7a56913aec517fdbb79e3a
[pspp-builds.git] / src / ui / terminal / ChangeLog
1 2007-09-25  Ben Pfaff  <blp@gnu.org>
2
3         Patch #6210: implement ability to resize output device parameters
4         to fit terminal window size as it changes.  Reviewed by John
5         Darrington.
6         
7         * automake.mk (src_ui_terminal_libui_a_SOURCES): Add new files.
8
9         * terminal.c: New file.
10
11         * terminal.h: New file.
12
13         * main.c (main): No need to set up SIGWINCH handler any longer.
14         But we do need to call terminal_init.
15         (set_fallback_viewport): Move to terminal.c.
16         [HAVE_LIBNCURSES] (get_termcap_viewport): Ditto.
17         [!HAVE_LIBNCURSES] (get_termcap_viewport): Ditto.
18
19         * read-line.c (readln_read): After the first line of a command,
20         call terminal_check_size to allow it to re-detect the terminal
21         size.
22
23 2007-09-24  Ben Pfaff  <blp@gnu.org>
24
25         Patch #6210.  Reviewed by John Darrington.
26         * main.c (set_fallback_viewport): Make code easier to understand.
27         (get_termcap_viewport): Ditto.
28
29         * command-line.c (parse_command_line): Don't call force_long_view,
30         as that function is no longer necessary.
31
32         * msg-ui.c (handle_msg): Only wrap message output to the message
33         file to the width of the terminal if the message file is a tty.
34
35 2007-09-19  John Darrington <john@darrington.wattle.id.au>
36
37         * main.c: Moved get_termcap_viewport from src/data/settings.c 
38         Added a handler for SIGWINCH to call this function.  Adjusted
39         init_settings to suit new interface. 
40
41 2007-09-22  Ben Pfaff  <blp@gnu.org>
42
43         Bug #21128.  Reviewed by John Darrington.
44
45         * main.c (i18_init): Set up LC_PAPER locale, if available.  Don't
46         bother with LC_MONETARY locale, since we don't use it anywhere.
47
48 2007-08-26  Ben Pfaff  <blp@gnu.org>
49
50         Bug #17238.  Thanks to John Darrington for review.
51
52         * main.c (main): When testing mode is enabled, use a built-in
53         output driver configuration instead of reading it from the
54         configuration file.
55
56         * msg-ui.c (handle_msg): Send error message to non-screen output
57         devices also, if routing to listing files is enabled.
58
59 2007-08-23  Ben Pfaff  <blp@gnu.org>
60
61         Implement journaling.  Bug #17240.
62         
63         * msg-ui.c (handle_msg): Send message to write_journal function
64         as well as msg_file.
65         (dump_message): Change interface so that it takes a function
66         pointer instead of a FILE.
67         (write_stream): New function.
68         (write_journal): New function.
69         
70         * read-line.c (welcome): Call journal_enable, so that the journal
71         is enabled by default.
72
73 2007-07-25  Ben Pfaff  <blp@gnu.org>
74
75         Make interactive output go to the terminal (bug #17213), by
76         causing the UI to flush output to the user when it prompts for a
77         command.
78
79         * command-line.c (parse_command_line): Configure interactive
80         output devices if appropriate.
81
82         * read-line.c (readln_read): Flush output if this is a prompt for
83         the first line of a command.
84
85 2007-06-06  Ben Pfaff  <blp@gnu.org>
86
87         Adapt case sources, sinks, and clients of procedure code to the
88         new infrastructure.
89         
90         * main.c: No need for fastfile_factory any more.
91
92 2007-02-25  Ben Pfaff  <blp@gnu.org>
93
94         Thanks to Jason Stover for verifying that this patch helps under
95         NetBSD.
96
97         * main.c [HAVE_IEEE_FP]: Include <ieeefp.h>.
98         (fpu_init) [HAVE_IEEE_FP]: Use setfpmask to mask floating-point
99         exceptions.
100
101 Sun Feb 18 13:28:26 2007  Ben Pfaff  <blp@gnu.org>
102
103         * msg-ui.c: Don't include exit.h, because gnulib fixes up stdlib.h
104         as necessary.  Do include stdlib.h, because exit.h did so for us
105         and we need it.
106
107 Thu Feb  8 15:07:04 2007  Ben Pfaff  <blp@gnu.org>
108
109         * read-line.c (readln_initialize): Instead of only supporting
110         history in unix, always support history, and only support a
111         history file when $HOME is defined.
112         (readln_uninitialize): Ditto.
113         (welcome) Call readln_initialize instead of duplicating code.
114
115 Sun Dec 10 11:13:53 2006  Ben Pfaff  <blp@gnu.org>
116
117         * command-line.c (pre_syntax_message): Use term "syntax" instead
118         of "script".
119
120 Sat Dec  9 07:21:02 WST 2006 John Darrington <john@darrington.wattle.id.au>
121
122         * msg-ui.c (msg_ui_done): call msg_locator_done.
123
124 Sun Dec  3 11:57:00 2006  Ben Pfaff  <blp@gnu.org>
125
126         * read-line.c (read_interactive): Always read GETL_INTERACTIVE
127         lines.
128         
129 Thu Nov 16 20:46:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
130
131         * main.c: Connect debugger on errors.
132
133 Tue Nov  7 20:54:32 WST 2006 John Darrington <john@darrington.wattle.id.au>
134
135         * command-line.c msg-ui.c msg-ui.h main.c: Added an -e
136         option to set the file for error messages.
137
138 Sat Nov  4 15:48:04 2006  Ben Pfaff  <blp@gnu.org>
139
140         * msg-ui.c (handle_msg): Only write message to terminal if
141         get_error_routing_to_terminal() returns true.
142
143 Fri Jul  7 20:03:42 2006  Ben Pfaff  <blp@gnu.org>
144
145         * main.c: (main) Register SIGABRT with bug_handler also.
146         (bug_handler) Handle SIGABRT also.
147
148 Tue Jun 27 22:44:56 2006  Ben Pfaff  <blp@gnu.org>
149
150         Fix regression in command name completion reported by John
151         Darrington.  Now completion is again state-dependent and occurs
152         only on the first line of a command.
153         
154         * main.c (main): Reading of first token in command moved into
155         cmd_parse.
156         (execute_command) Removed.
157
158         * read-line.c: [HAVE_READLINE] (readln_initialize) Postpone
159         setting rl_attempted_completion_function until readln_read.
160         [HAVE_READLINE] (readln_read) Change param from const char * to
161         enum getl_prompt_style.  Set rl_attempted_completion_function
162         based on style.
163         [HAVE_READLINE] (complete_command_name) New function.
164         [HAVE_READLINE] (dont_complete) New function.
165         [HAVE_READLINE] (command_generator) New function.
166
167 Tue Jun 27 08:23:07 2006  Ben Pfaff  <blp@gnu.org>
168
169         * automake.mk (src_ui_terminal_pspp_LDADD): Add $(LIBICONV).
170         Thanks to Jason Stover for reporting the omission.
171
172 Thu May  4 21:50:59 2006  Ben Pfaff  <blp@gnu.org>
173
174         Continue reforming procedure execution.  In this phase, move
175         procedure.c and procedure.h from src to src/data.  Update
176         makefiles and #includes accordingly.
177
178         * automake.mk: (src_ui_terminal_pspp_SOURCES) Remove
179         src/procedure.c and src/procedure.h.
180         (src_ui_terminal_pspp_LDADD) Move libexpressions.a later in list
181         to make the link work.
182
183 Wed May  3 23:09:37 2006  Ben Pfaff  <blp@gnu.org>
184
185         Continue reforming procedure execution.  In this phase, get rid of
186         many global variables, consolidating procedure execution in
187         procedure.c.  Encapsulate transformations in new "struct
188         trns_chain".  Also, change implementation of N OF CASES, FILTER,
189         and PROCESS IF from special cases to transformations.
190          
191         * main.c: (main) Use proc_init().
192         (terminate) Use proc_done().
193
194 Wed Apr 26 13:34:54 2006  Ben Pfaff  <blp@gnu.org>
195
196         Improve command name completion in readline.
197         
198         * read-line.c (readln_initialize): Set up readline to only break
199         words for completion at new-line.  That way we can complete a
200         whole command name.  Also, set rl_attempted_completion_function
201         instead of rl_completion_entry_function so we can disable
202         completing on file names, which is usually not what we want in
203         PSPP.
204
205 Wed Apr 26 13:31:00 2006  Ben Pfaff  <blp@gnu.org>
206
207         Improve the way we handle the various parsing "states".  Until now
208         we've hard-coded the state transitions in the command definition
209         file, but that's error-prone and, worse, it's redundant--we can
210         figure out what state we're in anyhow.  We can cleanly handle
211         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
212         
213         * automake.mk (src_ui_terminal_pspp_LDADD): Move libui earlier to
214         avoid link errors.
215
216         * main.c (main): Handle new CMD_* results.
217         (execute_command) Move most per-command actions into cmd_parse().
218         (handle_error) Removed.  cmd_parse() handles command failure.
219
220 Tue Apr 25 11:08:17 2006  Ben Pfaff  <blp@gnu.org>
221
222         Finish reforming error message support.  In this phase, move
223         message.c into libpspp.
224         
225         * automake.mk: Remove message.c from sources.
226
227 Tue Apr 25 10:58:19 2006  Ben Pfaff  <blp@gnu.org>
228
229         Continue reforming error message support.  In this phase, drop
230         actual message printing from core code, substituting a callback,
231         and add the callback to each UI.  Also, move verbose_msg() into
232         its own module.
233
234         * automake.mk (src_ui_terminal_libui_a_SOURCES): Add msg-ui.c,
235         msg-ui.h.
236
237         * command-line.c: (parse_command_line) Call
238         verbose_increment_level() instead of increment err_verbosity
239         directly, now that we have a little abstraction.
240
241         * msg-ui.c: New file.
242
243         * msg-ui.h: New file.
244
245         * main.c: (main) Call msg_ui_init().  Use any_errors().
246         (terminate) Call msg_ui_done().  Make termination order more
247         rational.
248
249         * read-line.c: (readln_read) Use reset_msg_count() now we have a
250         little abstraction.
251
252 Tue Apr 25 09:39:46 2006  Ben Pfaff  <blp@gnu.org>
253
254         * main.c: (terminate) Mark static and NO_RETURN.  If called
255         recursively, which can only happen via signal, just exit instead
256         of trying to gracefully shut down.      
257
258 Fri Mar 31 10:33:37 2006  Ben Pfaff  <blp@gnu.org>
259
260         * command-line.c: (var pre_syntax_message) -d and -u are no longer
261         supported.
262
263 Sat Mar 11 14:18:39 WST 2006 John Darrington <john@darrington.wattle.id.au>
264
265         * automake.mk: Moved the pspp binary here.
266
267 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
268         
269         * Moved files from src directory