Does an ncurses or similar library exist which works well with fortran? [closed]

我们两清 提交于 2019-12-20 06:42:54

问题


Does ncurses library (originally developed with C in mind, if memory serves) have a port, or does an alternative exist which works well with fortran on a Windows platform?

Or, some library (since I've always used ncurses name when referring to "that sort of interfaces) which could be used to develop semi GUI on a command line prompt?


回答1:


With 2003 standard C-Fortran interoperability

http://genepi.qimr.edu.au/staff/davidD/

http://genepi.qimr.edu.au/staff/davidD/Curses/pdcurses.f95

http://genepi.qimr.edu.au/staff/davidD/Curses/ncurses.f95

http://genepi.qimr.edu.au/staff/davidD/Curses/testcurs.f95




回答2:


For the alternatives, you'd need the calls in

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682087(v=vs.85).aspx

If you are using IVF, the interfaces have already been done in kernel32.F90 in the IVF include directory.

On Windows platforms, to get cursor addressing to work in either kernel32 or ncurses, the Screen Buffer Size height and Window Size height in the cmd prompt properties must be set to the same value.



来源:https://stackoverflow.com/questions/23207032/does-an-ncurses-or-similar-library-exist-which-works-well-with-fortran

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