문제

From the Python docs and howto pages it's clear how to color text: by first adding strings to a window and then using chgat() to assign a color-pair to the desired characters in that window.

What isn't clear to me is how to change the color of a box or border, which are made visible using box() or border(). Edit: using chgat() on the whole window does not seem to affect that window's border.

도움이 되었습니까?

해결책

Well, that's one way to color text, but generally not the best way. I'd suggest, instead, using attrset(), and then adding strings or borders. The border and text should then both be affected, and it's less overhead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top