Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序正在使用 ncurses,并且有几个不断更新的窗口。
在该应用程序中,当用户点击“q”时,我有一个充当“消息框”(例如对话框)的窗口,询问他们是否要关闭。这工作正常,直到其他窗口被更新。此时,其他窗口将被绘制在对话框上,使其(部分)不可见。
在对话框的窗口上调用 wrefresh() 似乎没有帮助。如何强制窗口位于前台?
我整天都在阅读手册页,找不到任何东西。当然,在提出我的问题 5 分钟后,我找到了解决方案:
redrawwin(dialog_window); wrefresh(dialog_window);
我的对话现在停留在前台。