简体   繁体   English

如何实现跨平台的类似cscope的基于文本的用户界面?

[英]How to implement cross-platform cscope-like text-based user interface?

I want my C++ program to: 我希望我的C ++程序能够:

  • Allow the selection of choices as in cscope; 允许像在cscope中那样选择选项; that is using tabs, and circularly iterating over the choices. 即使用制表符,并循环遍历所有选择。
  • Further, the choices should not scroll, as is the case with cscope. 此外,选项不应像cscope一样滚动。

Any ideas how I can implement this? 有什么想法可以实现吗? I would like my implementation to be cross-platform ie supports Windows, Linux and Mac environments. 我希望我的实现是跨平台的,即支持Windows,Linux和Mac环境。

I think you want ncurses . 我想你想要ncurses Have a look at the Linux tool aptitude to see what it can look like. 看一下Linux工具的aptitude ,看看它会是什么样子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM