def get_colorpair(pair_name):
'''
Returns the color attribute for the given foreground-background attribute,
ready for use in a call to addstr.
'''
val = CURSES_COLORPAIRS[pair_name]
return curses.color_pair(val)
评论列表
文章目录