窗口背景问题 [英] problem with window backgrounds

查看:106
本文介绍了窗口背景问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我一直在尝试使用curses库在终端上打印4个大小相同的不同窗口.但是我想打印四个具有不同背景色的窗口.但是当我尝试执行此操作时....所有4个窗口的颜色都相同.
你能建议我一种方法吗?

问候,

Hi ,
I have been trying to print 4 different windows of same size on a terminal using curses library. But I would like to print four windows with different back ground colors. But when i try to do it....I get the same color for all the 4 windows.
Can you please suggest me a way to do it.

Regards,

推荐答案

您尝试过wbkgdset(win,color)吗?
Have you tried wbkgdset(win,color)?



这篇关于窗口背景问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆