|
From: stafusa <st...@gm...> - 2011-06-30 18:27:25
|
Hello, in bash you can type, say, "rm" and search the shell history for entries beginning with "rm" by simply pressing PgUp, PgDn. That is very useful, and all you have to do is to add, in your .bashrc: bind '"\e[5~": history-search-backward' bind '"\e[6~": history-search-forward' At work (Suse, with gnuplot 4.4 patch 0) I have the same functionality in gnuplot, but not in my personal computer (Ubuntu, gnuplot 4.4 patch 2). I didn't find anything in the .gnuplot or similar and googling for quite a while didn't turn out anything useful. Does someone know how to get this feature to work in gnuplot? Thx in advance, Stafusa -- View this message in context: http://old.nabble.com/efficient-history-search-tp31964384p31964384.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Gabriele C. <wiz...@gm...> - 2011-07-02 23:10:53
|
Hi stafusa, I am experiencing the same problem. In addition, with the new version of gnuplot for ubuntu I also lost the possibility to use "tab" button to complete the file names. This is really hard to explain. Has anybody a solution? Cheers, Gabriele 2011/6/30 stafusa <st...@gm...> > > Hello, > > in bash you can type, say, "rm" and search the shell history for entries > beginning with "rm" by simply pressing PgUp, PgDn. That is very useful, and > all you have to do is to add, in your .bashrc: > bind '"\e[5~": history-search-backward' > bind '"\e[6~": history-search-forward' > > At work (Suse, with gnuplot 4.4 patch 0) I have the same functionality in > gnuplot, but not in my personal computer (Ubuntu, gnuplot 4.4 patch 2). I > didn't find anything in the .gnuplot or similar and googling for quite a > while didn't turn out anything useful. > > Does someone know how to get this feature to work in gnuplot? > > Thx in advance, > Stafusa > > -- > View this message in context: > http://old.nabble.com/efficient-history-search-tp31964384p31964384.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: stafusa <st...@gm...> - 2011-07-02 23:17:30
|
Wizard847 wrote: > > I am experiencing the same problem. In addition, with the new version of > gnuplot for ubuntu I also lost the possibility to use "tab" button to > complete the file names. > Hey. Just tested and this feature actually does work for me. But I also would think that the solutions for both problems should be linked. Cheers. -- View this message in context: http://old.nabble.com/efficient-history-search-tp31964384p31981527.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hernán G. A. <as...@gm...> - 2011-07-03 04:22:48
|
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 On Sat, Jul 2, 2011 at 20:17, stafusa <st...@gm...> wrote: > > > Wizard847 wrote: > > > > I am experiencing the same problem. In addition, with the new version of > > gnuplot for ubuntu I also lost the possibility to use "tab" button to > > complete the file names. > > > > Hey. Just tested and this feature actually does work for me. But I also > would think that the solutions for both problems should be linked. > > Cheers. > -- > View this message in context: > http://old.nabble.com/efficient-history-search-tp31964384p31981527.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
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 > |