hscurses or ncurses, which one to use?

孤街醉人 提交于 2019-12-21 04:06:44

问题


I'm writing a program which needs a UI. The program is in haskell. For the UI, I think of using ncurses library. Should I use hscurses library for haskell and write the UI in haskell or should I use ncurses library and write the UI in C and call haskell functions from C?
Which is the most preferred way?


回答1:


I don't see any advantages in writing the UI in C and call functions from C.

You can choose how you are going to do the UI from several libraries available on Hackage :

  • hscurses
  • ncurses
  • nanocurses
  • vty and vty-ui
  • ansi-terminal (on windows)

I don't know which is better, there's a small description but not enough. Nanocurses seems more portable but with less features.



来源:https://stackoverflow.com/questions/6924009/hscurses-or-ncurses-which-one-to-use

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