Is it possible to get the current background colour of the terminal window? I'm attempting to dim some of the output in my display, but this only seems to work if I set the background colour, and I'd like to continue to use the same background colour that is currently set.

没有正确的解决方案

其他提示

That would be window.getbkgd.

Return the given window’s current background character/attribute pair.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top