历史自动完成的gnuplot中 [英] History auto complete in gnuplot

查看:132
本文介绍了历史自动完成的gnuplot中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在gnuplot的,我键入

In gnuplot, I type

gnuplot> set style data lines

然后我跑几个其他线路:

Then I run few other lines:

gnuplot> plot "./data/traj1.dat" u 1:4, "" u 1:6, "" u 1:9, "" u 1:11, "" u 1:13, "" u 1:15
gnuplot> plot "./data/traj2.dat" u 1:4, "" u 1:6, "" u 1:9, "" u 1:11, "" u 1:13, "" u 1:15
gnuplot> plot "./data/traj3.dat" u 1:4, "" u 1:6, "" u 1:9, "" u 1:11, "" u 1:13, "" u 1:15

现在我想改变风格。我开始与

Now I want to change style. I start with

gnuplot> set

我要preSS例如CTRL-R( http://www.bigsmoke.us /的readline /快捷键),并命令完成,以

gnuplot> set style data lines

然后我可以改变例如

我如何让这个自动完成发生的呢?

How do I make this auto-completion happen?

推荐答案

一个部分解决方案的确是编译的gnuplot与readline的支持。你提到,这是在评论你最后的选择,但我认为这是你唯一的选择,如果你不想code一个gnuplot的前端自己。也许它有助于知道这是很容易从Ubuntu源代码编译gnuplot的。 10分钟,我只是这上述&lt做我自己。只需运行(在你选择的目录)中的命令

A partial solution is indeed to compile gnuplot with readline support. You mention that this is your last option in the comments, but I think that it is your only option if not you want to code a gnuplot frontend yourself. Maybe it helps to know that it is really easy to compile gnuplot from the ubuntu sources. I just did this myself in <10 min. Simply run (in a directory of your choice) the commands

sudo apt-get purge gnuplot
sudo apt-get build-dep gnuplot
cd `mktemp -d`
apt-get source gnuplot
cd gnuplot*
./configure --with-readline=gnu
make
sudo make install

pressing制表键写作的前几个字母将完成present字后,如果您preSS标签两次将打印的建议清单,你从你的GNU壳知道。遗憾的是并不是所有的readline功能似乎与当前的gnuplot(我知道他们做了一次)工作。例如。反向搜索按Ctrl + R(将是gnuplot的非常有用的)不为我工作。希望这有助于但无可否认这可能是只为你一个部分解决方案。

Pressing the tab-key after writing the first few letters will complete the present word and if you press tab twice it will print a list of suggestions as you know it from your gnu-shell. Unfortunately not all readline features seem to work with the current gnuplot (I know they did once). E.g. Ctrl+r for reverse search (would be very useful for gnuplot) does not work for me. Hope this helps though admittedly this is possibly only a partial solution for you.

这篇关于历史自动完成的gnuplot中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆