Autocomplete from directory in Fortran

你。 提交于 2019-12-12 04:49:35

问题


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

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.

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

Thanks.


回答1:


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

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

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



来源:https://stackoverflow.com/questions/23335771/autocomplete-from-directory-in-fortran

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!