从Fortran中自动完成目录 [英] Autocomplete from directory in Fortran

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

问题描述

我已经用Fortran语言编写一个小程序,它需要在一个文件中读取。
的文件名是由用户在运行时提供

I have a little program written in Fortran which needs to read in a file. The filename is provided by the user during runtime.

现在我想通过pressing [标签]自动填充文件名,或通过可用文件周期效​​仿bash的行为。

Now I want to emulate the bash behavior by autocompleting the filename, or cycle through available files by pressing [tab].

由于这将是唯一的一个额外的奖金,我也没有太多的时间,我不希望把大量的时间,这样的功能。

Since this will be only an extra bonus, and I don't have much time, I don't want to put a lot of time in such a feature.

那么,有没有可能是Ifort功能或自动等这样?

So is there may be an Ifort feature or such doing this automatically?

感谢。

推荐答案

我不知道由Ifort图书馆提供任何此类功能。

I don't know any such feature in libraries provided by Ifort.

您可以尝试 GNU的Readline ,但它可能没有你所需要的准确特性和提防它是有执照的GPL。

You may try GNU Readline, but it may not have the exact features you need and beware it is licensed as GPL.

编辑:有一些当量限制较少的许可证。例如, Editline

There are some equivalents with less restrictive licenses. For example, Editline.

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

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