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