我的控制台启用了透明度,当我运行其他ncurses应用程序时,我看到背景保持透明.我试图让我的应用程序保持透明度,而不是应用深黑色不透明背景.
这就是我到目前为止所做的
start_color();
init_pair(1, COLOR_GREEN, COLOR_BLACK);
attron(COLOR_PAIR(1));
mvprintw(10,10, "Hello");
refresh();
attroff(COLOR_PAIR(1));
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
谢谢