|
From: Jefferson S. E. P. <st...@gm...> - 2011-07-03 13:49:58
|
Thx a lot, Hernán. I didn't know of the term 'readline', now I could google the problem properly. :) So you're right, it's by compiling from source, with the appropriate option, that the problem is solved (something to do with licenses in debian and, by extension, ubuntu, that prevent them from including readline in the default installation, see /usr/share/doc/gnuplot/README.Debian - as pointed out in http://lists.debian.org/debian-science/2005/08/msg00081.html ). Apart from that, there is a (relatively) quick workarond: rlwrap ( http://ubuntuforums.org/archive/index.php/t-102524.html ). After installing rlwrap, for it's not included by default on ubuntu, I get the missing readline functionalities by running rlwrap -acN gnuplot (no guarantees about the options, but probably at least '-c', --complete-filenames, should be there). For my needs (efficient search) it is important to notice that those bindings I mentioned in the initial post, bind '"\e[5~": history-search-backward' bind '"\e[6~": history-search-forward' in the .bashrc, doesn't seem to be recognized by rlwrap, even it the option -t bash (didn't try it much, though, maybe it's possible to make it work somehow), but they do work when the equivalent lines in the /etc/inputrc were uncommented. Last, but not least, gnuplot seems to store white spaces in its history file as "\040"s, which are not retrieved any more as white spaces when using gnuplot with rlwrap, but that can be easily solved by substituting \040 by white spaces in the file. Good news is that gnuplot used without rlwrap doesn't seem to have problems reading the modified file, not so good news is that then (i.e., using gnuplot without rlwrap) the white spaces in the file will be back to \040's... Cheers, Stafusa On Sun, Jul 3, 2011 at 6:22 AM, Hernán Gonzalo Asorey <as...@gm...> wrote: > Hi, > Gnuplot 4.4 binaries included in ubuntu do not support full readline > features. I always manage that issue by installing gnuplot from source. > Download sources from www.gnuplot.info > Compile and link it using gnu readline option: > cd gnuplot > ./configure --with-readline=gnu > make > sudo make install > this should solve your problems. I don't know if there are other way to fix > the original gnuplot binaries distributed with ubuntu. > Cheers, > Hernán > |