gpt4 book ai didi

c - 禁用 ncurses 菜单中的菜单标记

转载 作者:行者123 更新时间:2023-11-30 17:53:41 24 4
gpt4 key购买 nike

我正在尝试使用 ncurses 来创建启动菜单。
我想删除所选项目标记(默认为“-”)。

man set_menu_mark 告诉我可以更改该字符串,但无法删除它。

有什么建议吗?
为了避免你的反差问题过滤器,我必须附加一些代码......

/* Set menu mark to the string " * " */
set_menu_mark(my_menu, "*");
/* this will reset the mark to default */
set_menu_mark(NULL,NULL);
/* i've tried this too */
set_menu_mark(my_menu.NULL);

最佳答案

解决方案:

curs_set(0);
...
set_menu_mark(my_menu,NULL);

;)

关于c - 禁用 ncurses 菜单中的菜单标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15460337/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com