Autocomplete from directory in Fortran

2019-08-29 10:32发布

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条回答
老娘就宠你
2楼-- · 2019-08-29 11:31

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.

查看更多
登录 后发表回答