|
From: Bastian M. <bma...@we...> - 2006-06-08 19:08:24
|
Timoth=E9e Lecomte wrote: > I like Bastian's idea to use a BSD-licensed equivalent, if it is=20 > maintained and broadly available. Otherwise it is gnuplot's license tha= t=20 > needs some more attention. It is a matter of honesty. The discussion about readline/libedit has come up in the past already - s= ee e.g. http://search.gmane.org/?query=3Dlibedit&group=3Dgmane.comp.graphics.gnup= lot.devel - so it wasn't my idea. But it has been on my todo-list for a while now. = ;-) I did a quick and dirty test if gnuplot/libedit may be compiled using cygwin. Here're some observations: command.c (restore_prompt()): rl_forced_update_display() is not supported by libedit gp_hist.h: have to include <editline/readline.h> instead of <readline/history.h> history.c (write_history_list()): history_list() is not supported by libedit mouse.c (alert()): rl_ding() is not supported by libedit plot.c: have to include <editline/readline.h> instead of <readline/tilde.h> variable rl_complete_with_tilde_expansion is not available (main()) readline.h: include <editline/readline.h> instead of <readline/readline.h> Most of the changes needed to get it compiling are really minor. But there're some problems: * The missing rl_forced_update_display() causes some text display problem= s. * It is not clear (to me) if the lack of rl_complete_with_tilde_expansion= is one * write_history_list() has to be rewritten using the available functions * some of the functions in libedit are stubs only and I haven't checked i= f gnuplot uses any of these (see editline/readline.h) * on my box not all keys worked as expected (might be a configuration pro= blem on my side though) Bastian |